From 2be108e2b6d5f43b12304881dd1d010f0b3316e7 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Sun, 20 Aug 2023 17:18:35 +0200 Subject: [PATCH] search: support profiles (closes #425) --- tests/test.py | 25 +++++++++---- ytmusicapi/locales/ar/LC_MESSAGES/base.mo | Bin 751 -> 799 bytes ytmusicapi/locales/ar/LC_MESSAGES/base.po | 30 +++++++++------- ytmusicapi/locales/base.pot | 34 ++++++++++-------- ytmusicapi/locales/de/LC_MESSAGES/base.mo | Bin 728 -> 759 bytes ytmusicapi/locales/de/LC_MESSAGES/base.po | 28 ++++++++------- ytmusicapi/locales/en/LC_MESSAGES/base.po | 28 ++++++++------- ytmusicapi/locales/es/LC_MESSAGES/base.mo | Bin 762 -> 793 bytes ytmusicapi/locales/es/LC_MESSAGES/base.po | 28 ++++++++------- ytmusicapi/locales/fr/LC_MESSAGES/base.mo | Bin 605 -> 644 bytes ytmusicapi/locales/fr/LC_MESSAGES/base.po | 28 ++++++++------- ytmusicapi/locales/hi/LC_MESSAGES/base.mo | Bin 786 -> 838 bytes ytmusicapi/locales/hi/LC_MESSAGES/base.po | 30 +++++++++------- ytmusicapi/locales/it/LC_MESSAGES/base.mo | Bin 647 -> 679 bytes ytmusicapi/locales/it/LC_MESSAGES/base.po | 28 ++++++++------- ytmusicapi/locales/ja/LC_MESSAGES/base.mo | Bin 782 -> 825 bytes ytmusicapi/locales/ja/LC_MESSAGES/base.po | 28 ++++++++------- ytmusicapi/locales/ko/LC_MESSAGES/base.mo | Bin 742 -> 776 bytes ytmusicapi/locales/ko/LC_MESSAGES/base.po | 32 +++++++++-------- ytmusicapi/locales/nl/LC_MESSAGES/base.mo | Bin 771 -> 803 bytes ytmusicapi/locales/nl/LC_MESSAGES/base.po | 30 +++++++++------- ytmusicapi/locales/pt/LC_MESSAGES/base.mo | Bin 712 -> 743 bytes ytmusicapi/locales/pt/LC_MESSAGES/base.po | 30 +++++++++------- ytmusicapi/locales/ru/LC_MESSAGES/base.mo | Bin 749 -> 788 bytes ytmusicapi/locales/ru/LC_MESSAGES/base.po | 30 +++++++++------- ytmusicapi/locales/tr/LC_MESSAGES/base.mo | Bin 699 -> 730 bytes ytmusicapi/locales/tr/LC_MESSAGES/base.po | 30 +++++++++------- ytmusicapi/locales/update_po.sh | 2 +- ytmusicapi/locales/ur/LC_MESSAGES/base.mo | Bin 718 -> 755 bytes ytmusicapi/locales/ur/LC_MESSAGES/base.po | 30 +++++++++------- .../zh_CN/LC_MESSAGES/{base.pot => base.po} | 31 ++++++++-------- ytmusicapi/locales/zh_TW/LC_MESSAGES/base.po | 30 +++++++++------- ytmusicapi/mixins/search.py | 12 +++++-- ytmusicapi/parsers/i18n.py | 2 +- ytmusicapi/parsers/search.py | 26 +++++++++----- 35 files changed, 334 insertions(+), 238 deletions(-) rename ytmusicapi/locales/zh_CN/LC_MESSAGES/{base.pot => base.po} (69%) diff --git a/tests/test.py b/tests/test.py index 5d1f8b7..3304804 100644 --- a/tests/test.py +++ b/tests/test.py @@ -93,26 +93,37 @@ class TestYTMusic(unittest.TestCase): self.assertGreater(len(results), 10) results = self.yt_auth.search("Martin Stig Andersen - Deteriation", ignore_spelling=True) self.assertGreater(len(results), 0) + + def test_search_filters(self): + query = "hip hop playlist" results = self.yt_auth.search(query, filter="songs") - self.assertListEqual([r["resultType"] for r in results], ["song"] * len(results)) self.assertGreater(len(results), 10) + self.assertTrue(all(item['resultType'] == 'song' for item in results)) results = self.yt_auth.search(query, filter="videos") self.assertGreater(len(results), 10) + self.assertTrue(all(item['resultType'] == 'video' for item in results)) results = self.yt_auth.search(query, filter="albums", limit=40) - self.assertListEqual([r["resultType"] for r in results], ["album"] * len(results)) self.assertGreater(len(results), 20) + self.assertTrue(all(item['resultType'] == 'album' for item in results)) results = self.yt_auth.search("project-2", filter="artists", ignore_spelling=True) - self.assertGreater(len(results), 0) + self.assertGreater(len(results), 10) + self.assertTrue(all(item['resultType'] == 'artist' for item in results)) results = self.yt_auth.search("classical music", filter="playlists") - self.assertGreater(len(results), 5) + self.assertGreater(len(results), 10) + self.assertTrue(all(item['resultType'] == 'playlist' for item in results)) results = self.yt_auth.search("clasical music", filter="playlists", ignore_spelling=True) - self.assertGreater(len(results), 5) + self.assertGreater(len(results), 10) results = self.yt_auth.search("clasic rock", filter="community_playlists", ignore_spelling=True) - self.assertGreater(len(results), 5) + self.assertGreater(len(results), 10) + self.assertTrue(all(item['resultType'] == 'playlist' for item in results)) results = self.yt_auth.search("hip hop", filter="featured_playlists") - self.assertGreater(len(results), 5) + self.assertGreater(len(results), 10) + self.assertTrue(all(item['resultType'] == 'playlist' for item in results)) + results = self.yt_auth.search("some user", filter="profiles") + self.assertGreater(len(results), 10) + self.assertTrue(all(item['resultType'] == 'profile' for item in results)) def test_search_uploads(self): self.assertRaises( diff --git a/ytmusicapi/locales/ar/LC_MESSAGES/base.mo b/ytmusicapi/locales/ar/LC_MESSAGES/base.mo index b750b12bba71d0fa6b54214fb4c8ffc092ded1bb..4db42cab951a5eba9bb76f571d5e7651b595688a 100644 GIT binary patch delta 332 zcmXZWKWoBZ5XbQ+)~K;oQ1DODA>DM6ZqANwI=VQuMNll_rVs?XxCY1S*sY6-FT*tf z>kDvkl5XPnlIP&~-0ulo?qaTE&M6yRDk?>n=_#F|kF=C+C>6sOZ3PqL8d_M#I5xCR zZ5yM!cXaNeN&Z0DH^6_T95rT0^U#lkiziql&+!?*v4DGg!UM{&f0)EG%0XA1Z6vpv$=k9zLCkPt|R;@;(MX;>QX0wXPzT_tu=6wQ_&2AI1TKoz|tN(Mo z2OfTV*yVDzD*D*sJqS<2w8@AZNKEcTr*A|ejJ*jq=woc+1nW5S&M~Afd|#raXQ=nA z@rxVmi4>9t{|mR6@M4E49pt66{y>?U>1Ad1rhEq34}%aCRR910 diff --git a/ytmusicapi/locales/ar/LC_MESSAGES/base.po b/ytmusicapi/locales/ar/LC_MESSAGES/base.po index 7fe6556..d1755d2 100644 --- a/ytmusicapi/locales/ar/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/ar/LC_MESSAGES/base.po @@ -1,13 +1,13 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# +# msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: 2023-01-02 22:14+0530\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.2.2\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "فنان" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "قائمةالتشغيل" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "أغنية" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "فيديو" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "محطة" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "الملف الشخصي" + +#: parsers/i18n.py:21 msgid "albums" msgstr "ألبومات" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "الفردي" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "أشرطة فيديو" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "قوائم التشغيل" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "ذات صلة" diff --git a/ytmusicapi/locales/base.pot b/ytmusicapi/locales/base.pot index 9b1dfc2..87a762d 100644 --- a/ytmusicapi/locales/base.pot +++ b/ytmusicapi/locales/base.pot @@ -1,14 +1,14 @@ -# Translations for ytmusicapi -# Copyright (C) 2021 sigma67 -# This file is distributed under the same license as ytmusicapi -# sigma67 +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "" + +#: parsers/i18n.py:21 msgid "albums" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "" diff --git a/ytmusicapi/locales/de/LC_MESSAGES/base.mo b/ytmusicapi/locales/de/LC_MESSAGES/base.mo index 11bb509fa4940a5b008a57d6dde3fefd3f670c2a..6f298ba2fddccba62ac95aef907d2ba55ff70eae 100644 GIT binary patch delta 316 zcmXYru?_)I5Jlf(*IKrrQ4pb{5}jJ9RBBXKB!q}kvOl1*q0*`q5`Q95pwX#xT4(G` za&zXs$-6T*_v=Q_qO&tpfGTK>3h0icYSx$xtScKZi*G?6cAy8l%AT?h9o`4(htS23 zq2$eA$(qQlbg)S!fm z^)=~q+n@Wm;@giehIHwO<}{@*s`RWeO_&B|u!T=x8%|*Y=Yb0t9kKoVXZ^)((m;P`asKaQtK@~l#Xw&)6_R1e9 Ohjw<`*n=&rX!!?E`V*c2 diff --git a/ytmusicapi/locales/de/LC_MESSAGES/base.po b/ytmusicapi/locales/de/LC_MESSAGES/base.po index c604e2d..c9f119d 100644 --- a/ytmusicapi/locales/de/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/de/LC_MESSAGES/base.po @@ -1,5 +1,5 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 # @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "künstler" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "playlist" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "titel" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "video" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "sender" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "profil" + +#: parsers/i18n.py:21 msgid "albums" msgstr "alben" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "singles" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "videos" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "playlists" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "das könnte fans auch gefallen" diff --git a/ytmusicapi/locales/en/LC_MESSAGES/base.po b/ytmusicapi/locales/en/LC_MESSAGES/base.po index 63ea954..20d5b9b 100644 --- a/ytmusicapi/locales/en/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/en/LC_MESSAGES/base.po @@ -1,5 +1,5 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 # @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "" + +#: parsers/i18n.py:21 msgid "albums" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "fans might also like" diff --git a/ytmusicapi/locales/es/LC_MESSAGES/base.mo b/ytmusicapi/locales/es/LC_MESSAGES/base.mo index e103c16a8b9a79e585c9e7b6c1d55688600c927d..59d70f5229fc4ce6ca6fd4878c0807a16df935b7 100644 GIT binary patch delta 315 zcmXZWzYf7r6vy#eU$j(LD`jJ^vX6Dag=PIF`W2TYvf@!deHTogeafDTz1g99&&qBXIN54YN zSz|^vggJ%DqyK;{c6eZq8J@6@7u2E~YViZL@P!)q4*dt2>5HSk(?Gq9?p26NcT}3; U{Ac@?KT!7U_`I|`Ti&Dj4{nPTivR!s diff --git a/ytmusicapi/locales/es/LC_MESSAGES/base.po b/ytmusicapi/locales/es/LC_MESSAGES/base.po index a8969c6..fd6bc80 100644 --- a/ytmusicapi/locales/es/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/es/LC_MESSAGES/base.po @@ -1,5 +1,5 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 # @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "artista" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "lista de reproducción" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "canción" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "vídeo" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "emisora" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "perfil" + +#: parsers/i18n.py:21 msgid "albums" msgstr "álbumes" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "sencillos" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "vídeos" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "listas de reproducción" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "puede que también te guste" diff --git a/ytmusicapi/locales/fr/LC_MESSAGES/base.mo b/ytmusicapi/locales/fr/LC_MESSAGES/base.mo index 7ac8523fb5f5bd60627aaaa17d27f5b505c4877e..91eea02eacd225a6e93777c7c3a6dc782d4003ed 100644 GIT binary patch delta 275 zcmcc1(!yGQPl#nI0}yZmu?!HW05LBRuK{8ZcmTv~K>QGhIe_>D5VHgEM=1RhNV5Pj zBO^qd4M?*B`Fubcq)!A$ivzJV5QFp?GeOL;2GT(JdIlFDLl!9E4WvODGof@oL;*u7 zkOpb20n$J-zyQPt0g!r-qd*P-O2Yv&kOlG($N>zAMJ1WVB@6{QiIq8EMp1rRW=<+Y VQEEc0T7I3okYZy*g)FU$ndFAbz+fqWGp4OAb=-~?eXcmQdTMn518(hv%y wf%?G!B+d+FgDe3#1O$Lez>WZ^XGkn6$t*5mD9A~y%mFes{_tU(?9F5e07mK # @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "artiste" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "playlist" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "titre" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "vidéo" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "radio" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "profil" + +#: parsers/i18n.py:21 msgid "albums" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "vidéos" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "vous aimerez peut-être aussi" diff --git a/ytmusicapi/locales/hi/LC_MESSAGES/base.mo b/ytmusicapi/locales/hi/LC_MESSAGES/base.mo index a133337cb3a039587a01022117da4a8a501025f7..f27e3ec655866ad2557c7a59d023f3496322914e 100644 GIT binary patch delta 335 zcmbQlc8sn5o)F7a1|Z-8Vi_Q=0b)TQz5~P{puot$zy_ohp|l2&<^b~bfix$OwgA%X zK-vjPdqL?SAk6|4kAm{!fix?SpAMu!=H&wE?+gs}3?)DY$nqQ}1_mJ@T?wS6fpia) zUIC?#0BH%J_yZsfviK*IW@d)ybu##%83l@pQkYF(2FeEIYlB8Q8H0%P$8bFbtF$gps3IE*8 zBqv`_)5o+ofAr-mi%-I|$$%6jC3m9Jbs`>9Gsgyfh)o<}9Vg}#WBSbc925Ey^*L+& z;s!e+rK}>6j1ybzV__aJr=L+@bTuES*FVjV`9q!=hQn}A3w0S?xJGnz2_0QJ37;J* Qf1v8Q@nzxmu6jqiKbWBv8vp -# +# msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: 2023-01-01 11:04+0530\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.2.2\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "कलाकार" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "प्लेलिस्ट" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "गीत" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "वीडियो" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "स्टेशन" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "प्रोफ़ाइल" + +#: parsers/i18n.py:21 msgid "albums" msgstr "एलबम" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "एकल" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "वीडियो" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "प्लेलिस्ट" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "सम्बंधित" diff --git a/ytmusicapi/locales/it/LC_MESSAGES/base.mo b/ytmusicapi/locales/it/LC_MESSAGES/base.mo index e7275573dd04d919f3a5e57242859b4a997dadba..2b7bf739bd5109cfcddce8834eb5afe6779cc03a 100644 GIT binary patch delta 287 zcmZo?UCvs6Pl#nI0}yZlu?!IB05LBR?*U>E_yELgK>QI({{YgQK>Qzw*+FbZ2rUSu zC4n>xP+SqpR|C=@{dz!J9EeSUm=(zPWdiG~X9xx|IDi7t5CMi1AT0~z=Ro;gKpLcB z5|9R|n*rr71kymWzyRbRkfk61QUg-Y48%YsU;uIe$b%pUGbH9DmF5;RBo>uq7MDzX Z$IV_)l%JNFle+Oo2qTo8KiQkf1^`bY9-ROH delta 239 zcmZ3^+Rj>kPl#nI0}yZmu?!HW05LBRuK{8ZcmTv~K>QF&zW~x8weNwL9f*HIX+}l{ z1{NTj6G(%^`G7P?pBRu92Vz+uW(D$1nIQ7kK$?SrA&$Wr$dCm}_&_DHfHX*95kvt) u1(e?iq=9CD0Z=2@G7tyk7?6d`Knzp@1|a<)z&7!%%w|ExV8+QgOx6G!Vi8yX diff --git a/ytmusicapi/locales/it/LC_MESSAGES/base.po b/ytmusicapi/locales/it/LC_MESSAGES/base.po index efc64da..117df80 100644 --- a/ytmusicapi/locales/it/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/it/LC_MESSAGES/base.po @@ -1,5 +1,5 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 # @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "artista" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "brano" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "stazione" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "profilo" + +#: parsers/i18n.py:21 msgid "albums" msgstr "album" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "singoli" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "video" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "playlist" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "ai fan potrebbe anche piacere" diff --git a/ytmusicapi/locales/ja/LC_MESSAGES/base.mo b/ytmusicapi/locales/ja/LC_MESSAGES/base.mo index a62e4328574e4b38837bd523e14f9dba9c8058c8..497f7e8396f4a0863efbe35625eca526bb0bd55a 100644 GIT binary patch delta 327 zcmeBU+sRgcPl#nI0}${4u?!H`0I?tt-vMF}P+(+WU<1;MP+9{>a{&4JK$;UsTL5Wx zAngRDy`XdukY)jjM?v}VK$;cEPY2Q<^KyZ-I3q(nLkW-pvb=|hfk6mJ&xF!zp!9wy zeF;b_0_C3qX^?t$W(EczVh{lmAbk=*8f36Glr{p=K%>C`s0A#?4WvPi0y!Kg4Fu8< z*MpcKUx8c*0$f1MGntc7lf9rQKP@vSb+aL37o%YF^vBI>A2&~Z+_d;{^Pb1et0(Vd G3Izb@y&=i~ delta 285 zcmXZXF$%&!5QX8{m~7Nom^3N~VyCU8rHx=?A?Z9u`e12e6Fq|mu+lSl1hEt>yo3KN zGw}GB-Rv;A`;)KVMSKw|BV$sLoIHtE--&q4%^|kwC)mLmrnoSd7}Kw;Ut>bQMV(XP zfb2<6q?RfYDY!V8XY-0v&L7B!^1>E=?f!>4P!H7k{t( diff --git a/ytmusicapi/locales/ja/LC_MESSAGES/base.po b/ytmusicapi/locales/ja/LC_MESSAGES/base.po index 9e9ae68..8ea993d 100644 --- a/ytmusicapi/locales/ja/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/ja/LC_MESSAGES/base.po @@ -1,5 +1,5 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 # @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "アーティスト" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "プレイリスト" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "曲" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "動画" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "ステーション" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "プロフィール" + +#: parsers/i18n.py:21 msgid "albums" msgstr "アルバム" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "シングル" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "動画" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "プレイリスト" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "おすすめのアーティスト" diff --git a/ytmusicapi/locales/ko/LC_MESSAGES/base.mo b/ytmusicapi/locales/ko/LC_MESSAGES/base.mo index c77275b4eda3ea24940b9e43ab3242e4b6a8c683..d3a7560fbf2c94833cd9cd4ed8f64e70de6e821b 100644 GIT binary patch delta 319 zcmaFH+QC+TPl#nI0}${4u?!H`0I?tt-vMF}P+(+WU<1;MP+9{>a{&4JK$;UsTL5Wx zAngRDy`XdukY)jjM?v}VK$;cEPY2Q<^KyZ-I3q(nLkU!%hY8|{$xwO$lwJ#@K^E-- z(jq|m2#^LDa1%;D0Ma1GKL^qvbzh+LKOhY>8VrC;upVw84RRDn9WxL!Fi1mO4`PCR s1#%$>Z~-yTWKKp+_JX4Pw9K5;&4!GHjGS+$w7gz8=k3&%$qSiW0foUI<^TWy delta 285 zcmXZYEe^s!5QgE|(k;J&5)vRG!Gc912?+@XRmUL^b%@&frWfD}2pkF=3QdrlgLjsh zfVNAcaev6)dk2)vA z5jp((Lh?wY$HB=g%^HWiKcil}nm0Rtpf2z--^k2RJchFl>N2`;gJ|h2EnV7&&kikr PpqjYFW#^8rx<{KI{hSk& diff --git a/ytmusicapi/locales/ko/LC_MESSAGES/base.po b/ytmusicapi/locales/ko/LC_MESSAGES/base.po index 857bd77..75e3afa 100644 --- a/ytmusicapi/locales/ko/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/ko/LC_MESSAGES/base.po @@ -1,14 +1,14 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "아티스트" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "재생목록" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "노래" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "동영상" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "스테이션" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "프로필" + +#: parsers/i18n.py:21 msgid "albums" msgstr "앨범" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "싱글" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "동영상" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "재싱목록" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" -msgstr "fans might also like" \ No newline at end of file +msgstr "fans might also like" diff --git a/ytmusicapi/locales/nl/LC_MESSAGES/base.mo b/ytmusicapi/locales/nl/LC_MESSAGES/base.mo index 1da550926f4560175f871ad523564bf005d3dd4e..b6620ebbaff0dbbb3ee8360e7ed00f0df5e696c4 100644 GIT binary patch delta 317 zcmZo>Tg+B}Pl#nI0}${4u?!H`0I?tt-vMF}P+(+WU<1;MP+9{>a{&4JK$;UsTL5Wx zAngRDy`XdukY)jjM?v}VK$;cEPY2Q<^KyYSP;EU!2~=P|6U3lnKpNzjb3mF8NZ*Ev zzXHjBv{~wSB8N|j6(Z>sL2&5sJK}?XZ lKn8#S7ZCGI=48}lFDS}S%gjmLY{i z2ZnElU1sOx_AW2`@xh=r9^oBM@dHaeYm9?w-~cwrW7vcfScmh#1&qndkXJAvuc3N2 zFvHs_=jI$$1sB-i!3}od9ct7w+?P-VuaMtR#ov&BkWMd-eq0M`j0V@Rqz*}=6aRyc Qd{zwY^qSeDEk4og4~;PuU;qFB diff --git a/ytmusicapi/locales/nl/LC_MESSAGES/base.po b/ytmusicapi/locales/nl/LC_MESSAGES/base.po index abd9449..0d09b67 100644 --- a/ytmusicapi/locales/nl/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/nl/LC_MESSAGES/base.po @@ -1,13 +1,13 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# +# msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: 2023-04-23 14:55+0200\n" "Last-Translator: Heimen Stoffels \n" "Language-Team: \n" @@ -18,42 +18,46 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.2.2\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "artiest" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "afspeellijst" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "nummer" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "video" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "station" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "profiel" + +#: parsers/i18n.py:21 msgid "albums" msgstr "albums" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "singles" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "video's" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "afspeellijsten" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "gerelateerd" diff --git a/ytmusicapi/locales/pt/LC_MESSAGES/base.mo b/ytmusicapi/locales/pt/LC_MESSAGES/base.mo index 65af57fa55a919ff9e197b1d691bec0884aa2a4e..d3aa31ffe4f929e14ecaf8653a94615dd09d24ca 100644 GIT binary patch delta 316 zcmXZXF%Q8&6u|MjYD=+@urRPOiOp;@8Z9g(5~683HtAOojSpdySj}QG8-&qEu=>CD zUh?w0cYXKndUw7~@~+!QMO4W)8Iv{gMM`wEQZ9ClJuFcV(8CcHacrCzr)aZ3GxZ!D z>J`eoE&h~BRAd@9Rz4`g1`RPb@qlvRgcUraTzo~j_-5({O5fA$e~{5xu*|;6d3lta oFOW*L@*%R6zmgY9l*wx9>3%T?cgyw0zYO(4yMZ54q(BWP%U~$@9Bho)2g;Lriw|hk9G108#u-qPJ?rd$%~Me=*Vl- zoD_eUmFKzHMCE`CyBzGWhX>T7j;KXv)S^qsSJc2q`2R#^`r^~yX`&vZ2Ulp7?x-}& T`3*j@tQgqIePy?{xJ9!+TUZl# diff --git a/ytmusicapi/locales/pt/LC_MESSAGES/base.po b/ytmusicapi/locales/pt/LC_MESSAGES/base.po index 3ec9d22..0be81fe 100644 --- a/ytmusicapi/locales/pt/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/pt/LC_MESSAGES/base.po @@ -1,13 +1,13 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# +# msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: 2023-01-01 12:15+0530\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.2.2\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "artista" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "lista de reprodução" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "música" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "vídeo" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "estação" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "perfil" + +#: parsers/i18n.py:21 msgid "albums" msgstr "álbuns" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "solteiros" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "vídeos" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "listas de reprodução" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "relacionado" diff --git a/ytmusicapi/locales/ru/LC_MESSAGES/base.mo b/ytmusicapi/locales/ru/LC_MESSAGES/base.mo index 6134e72dc903681292a83bddd79f82b0e5dee2c8..db8dd86a084e057a575275b530ce2236dc6bd59f 100644 GIT binary patch delta 324 zcmXZXy$gYH5Ww+!ygl9$Pnj6lm}D~>jRu3ogcOl%6ob)*O#TODQHp=zc?O#dcC*Fc zd;G4h&+qQ)o_k)wO=$jb0$U;CWR{$fDe_Kgb%7 delta 285 zcmXZYJqp4=5QgE|n2o=P2?z>;t+tkyHiC_f>FfkgkUo_sh=QlEv9z$Wvb7a2U~TI= z%M1)pzD=^3%`y4<@}0#eq1yC_F6fkg(po(yl3;2Mut6SU6DL^5nK{Rpys*4PPhO+$ zlj9G!*cB;d6Y&uic4mPY`G9>qV+SwT!W;6UJS@NL{s-AJ6qjK*eO`yrforsu4xyz( U`*7?K`2*F^O|L7rchx=0|9ajOMF0Q* diff --git a/ytmusicapi/locales/ru/LC_MESSAGES/base.po b/ytmusicapi/locales/ru/LC_MESSAGES/base.po index 370a6e4..7966500 100644 --- a/ytmusicapi/locales/ru/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/ru/LC_MESSAGES/base.po @@ -1,13 +1,13 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# +# msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: 2023-01-01 09:48+0530\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.2.2\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "художник" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "плейлист" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "песня" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "видео" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "станция" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "профиль" + +#: parsers/i18n.py:21 msgid "albums" msgstr "альбомы" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "синглы" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "ролики" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "плейлисты" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "связанные с" diff --git a/ytmusicapi/locales/tr/LC_MESSAGES/base.mo b/ytmusicapi/locales/tr/LC_MESSAGES/base.mo index d6c83cdd67aa8cc7a06d4cd079d985db5cccf73e..528ab469ad0f3dd8a5a60443ad01b66136551d1a 100644 GIT binary patch delta 316 zcmXZWF%Q8|6o%n@t5u~DtPE^SA~BeaMvKH^LL?O;Vv^KmG&FXbS!`@plU2muuzF8> zPx9rtr%k`xyYqI!Z^=F?#wQiBB}MWfGF7cq8f(TnX4sqPVFz988hge*+B_eceS{AC z6s2#DKczyo<{(9ZmAJt?`wk0uK>6Tg-k(u^;DU1T&Fl}93!Y|wA=UA4j5~5DKPC62 kh*IUGM2=D_1u|LUN1krD%hh5s3&z)$9_VzkM0>0K2Ok?7a{vGU delta 285 zcmXZYtq#I46o%n;to$ZqLyd$43l*PK*aDX)&1t%Djry -# +# msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: 2023-01-02 13:06+0530\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.2.2\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "sanatçı" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "çalma listesi" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "şarkı" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "video" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "istasyon" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "profil" + +#: parsers/i18n.py:21 msgid "albums" msgstr "albümler" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "bekarlar" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "videolar" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "çalma listeleri" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "ilişkili" diff --git a/ytmusicapi/locales/update_po.sh b/ytmusicapi/locales/update_po.sh index 1f09f84..37946e0 100644 --- a/ytmusicapi/locales/update_po.sh +++ b/ytmusicapi/locales/update_po.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash for dir in * do - if [ ${#dir} -eq 2 ]; + if (( ${#dir} >=2 && ${#dir} <=5 )); then msgmerge --update ${dir}/LC_MESSAGES/base.po base.pot --no-fuzzy-matching fi diff --git a/ytmusicapi/locales/ur/LC_MESSAGES/base.mo b/ytmusicapi/locales/ur/LC_MESSAGES/base.mo index 6822aec6f6498df47ea2188928944385df321659..95cb72d83fd22ec39f4679f46e78dcab8e2d6214 100644 GIT binary patch delta 321 zcmXZWzY9T86u|NO@ceotRt7dE*~}JYG|6H@ib%?$#KNd#H!&GxGuW)=_adWzz+m+~ z@7+_U&pD^tx#wYi&G|bO*eN1LX2=1OjQ4YE5`9sg2y8j@n-Jod*sj`->sE_Ju-nC-;GZy9eRrIJ z;hEXtcIQ6+<+FDuE`&(PK6xNh@=1nhJCQP`W*4jU1FYc?D>ybM7}HO!pQEQ=Vz_6G zU)*9{B$HL7h3v4&V2>?4VgpY$FEBiOw)2af->rWjcWO}Tay+2Rgzri^`7aU5u(a3T Rwn38j+~~G&8<$_B*$-yS6MFyv diff --git a/ytmusicapi/locales/ur/LC_MESSAGES/base.po b/ytmusicapi/locales/ur/LC_MESSAGES/base.po index 4fe9f56..f708496 100644 --- a/ytmusicapi/locales/ur/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/ur/LC_MESSAGES/base.po @@ -1,13 +1,13 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# +# msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: 2023-01-02 22:18+0530\n" "Last-Translator: \n" "Language-Team: \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.2.2\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "فنکار" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "پلے لسٹ" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "نغمہ" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "ویڈیو" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "اسٹیشن" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "پروفائ" + +#: parsers/i18n.py:21 msgid "albums" msgstr "البمز" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "سنگلز" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "ویڈیوز" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "پلے لسٹس" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "متعلقہ" diff --git a/ytmusicapi/locales/zh_CN/LC_MESSAGES/base.pot b/ytmusicapi/locales/zh_CN/LC_MESSAGES/base.po similarity index 69% rename from ytmusicapi/locales/zh_CN/LC_MESSAGES/base.pot rename to ytmusicapi/locales/zh_CN/LC_MESSAGES/base.po index 07c7e7c..800bf2e 100644 --- a/ytmusicapi/locales/zh_CN/LC_MESSAGES/base.pot +++ b/ytmusicapi/locales/zh_CN/LC_MESSAGES/base.po @@ -1,14 +1,13 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# -#, fuzzy +# msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Bruce Zhang \n" "Language-Team: LANGUAGE \n" @@ -17,42 +16,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "音乐人" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "播放列表" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "歌曲" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "视频" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "电台" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "个人资料" + +#: parsers/i18n.py:21 msgid "albums" msgstr "专辑" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "单曲" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "视频" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "精选" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "粉丝可能还会喜欢" diff --git a/ytmusicapi/locales/zh_TW/LC_MESSAGES/base.po b/ytmusicapi/locales/zh_TW/LC_MESSAGES/base.po index 218f133..8752f53 100644 --- a/ytmusicapi/locales/zh_TW/LC_MESSAGES/base.po +++ b/ytmusicapi/locales/zh_TW/LC_MESSAGES/base.po @@ -1,14 +1,14 @@ # Translations for ytmusicapi -# Copyright (C) 2021 sigma67 +# Copyright (C) 2023 sigma67 # This file is distributed under the same license as ytmusicapi # sigma67 -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-24 13:13+0100\n" +"POT-Creation-Date: 2023-08-20 16:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,42 +17,46 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "artist" msgstr "藝人" -#: parsers/browsing.py:22 +#: parsers/i18n.py:16 msgid "playlist" msgstr "播放清單" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "song" msgstr "歌曲" -#: parsers/browsing.py:23 +#: parsers/i18n.py:16 msgid "video" msgstr "影片" -#: parsers/browsing.py:24 +#: parsers/i18n.py:16 msgid "station" msgstr "電台" -#: parsers/browsing.py:128 +#: parsers/i18n.py:16 +msgid "profile" +msgstr "個人資料" + +#: parsers/i18n.py:21 msgid "albums" msgstr "專輯" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "singles" msgstr "單曲" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "videos" msgstr "影片" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "playlists" msgstr "精選收錄" -#: parsers/browsing.py:128 +#: parsers/i18n.py:21 msgid "related" msgstr "粉絲可能也會喜歡" diff --git a/ytmusicapi/mixins/search.py b/ytmusicapi/mixins/search.py index d22cdb6..97211d7 100644 --- a/ytmusicapi/mixins/search.py +++ b/ytmusicapi/mixins/search.py @@ -117,6 +117,14 @@ class SearchMixin: "artist": "Oasis", "shuffleId": "RDAOkjHYJjL1a3xspEyVkhHAsg", "radioId": "RDEMkjHYJjL1a3xspEyVkhHAsg" + }, + { + "category": "Profiles", + "resultType": "profile", + "title": "Taylor Swift Time", + "name": "@TaylorSwiftTime", + "browseId": "UCSCRK7XlVQ6fBdEl00kX6pQ", + "thumbnails": ... } ] @@ -127,7 +135,7 @@ class SearchMixin: search_results = [] filters = [ 'albums', 'artists', 'playlists', 'community_playlists', 'featured_playlists', 'songs', - 'videos' + 'videos', 'profiles' ] if filter and filter not in filters: raise Exception( @@ -148,7 +156,7 @@ class SearchMixin: if scope == scopes[0] and filter in filters[3:5]: raise Exception(f"{filter} cannot be set when searching library. " f"Please use one of the following filters or leave out the parameter: " - + ', '.join(filters[0:3]+filters[5:])) + + ', '.join(filters[0:3] + filters[5:])) params = get_search_params(filter, scope, ignore_spelling) if params: diff --git a/ytmusicapi/parsers/i18n.py b/ytmusicapi/parsers/i18n.py index cfb94b7..816c382 100644 --- a/ytmusicapi/parsers/i18n.py +++ b/ytmusicapi/parsers/i18n.py @@ -13,7 +13,7 @@ class Parser: @i18n def get_search_result_types(self): - return [_('artist'), _('playlist'), _('song'), _('video'), _('station')] + return [_('artist'), _('playlist'), _('song'), _('video'), _('station'), _('profile')] @i18n def parse_artist_contents(self, results: List) -> Dict: diff --git a/ytmusicapi/parsers/search.py b/ytmusicapi/parsers/search.py index 58ef5c9..65ba488 100644 --- a/ytmusicapi/parsers/search.py +++ b/ytmusicapi/parsers/search.py @@ -5,7 +5,7 @@ from ._utils import * def get_search_result_type(result_type_local, result_types_local): if not result_type_local: return None - result_types = ['artist', 'playlist', 'song', 'video', 'station'] + result_types = ['artist', 'playlist', 'song', 'video', 'station', 'profile'] result_type_local = result_type_local.lower() # default to album since it's labeled with multiple values ('Single', 'EP', etc.) if result_type_local not in result_types_local: @@ -67,15 +67,18 @@ def parse_search_result(data, search_result_types, result_type, category): elif result_type == 'playlist': flex_item = get_flex_column_item(data, 1)['text']['runs'] has_author = len(flex_item) == default_offset + 3 - search_result['itemCount'] = nav(flex_item, - [default_offset + has_author * 2, 'text']).split(' ')[0] - search_result['author'] = None if not has_author else nav(flex_item, - [default_offset, 'text']) + search_result['itemCount'] = get_item_text(data, 1, + default_offset + has_author * 2).split(' ')[0] + search_result['author'] = None if not has_author else get_item_text( + data, 1, default_offset) elif result_type == 'station': search_result['videoId'] = nav(data, NAVIGATION_VIDEO_ID) search_result['playlistId'] = nav(data, NAVIGATION_PLAYLIST_ID) + elif result_type == 'profile': + search_result['name'] = get_item_text(data, 1, 2) + elif result_type == 'song': search_result['album'] = None if 'menu' in data: @@ -124,7 +127,7 @@ def parse_search_result(data, search_result_types, result_type, category): song_info = parse_song_runs(runs) search_result.update(song_info) - if result_type in ['artist', 'album', 'playlist']: + if result_type in ['artist', 'album', 'playlist', 'profile']: search_result['browseId'] = nav(data, NAVIGATION_BROWSE_ID, True) if result_type in ['song', 'album']: @@ -143,7 +146,7 @@ def parse_search_results(results, search_result_types, resultType=None, category def get_search_params(filter, scope, ignore_spelling): - filtered_param1 = 'EgWKAQI' + filtered_param1 = 'EgWKAQ' params = None if filter is None and scope is None and not ignore_spelling: return params @@ -194,7 +197,14 @@ def get_search_params(filter, scope, ignore_spelling): def _get_param2(filter): - filter_params = {'songs': 'I', 'videos': 'Q', 'albums': 'Y', 'artists': 'g', 'playlists': 'o'} + filter_params = { + 'songs': 'II', + 'videos': 'IQ', + 'albums': 'IY', + 'artists': 'Ig', + 'playlists': 'Io', + 'profiles': 'JY' + } return filter_params[filter]