From fc346b4efd12651511fc419fd11e3aceb7478bbd Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 27 May 2019 14:54:50 -0500 Subject: [PATCH] Add 'View playlist on YouTube' --- locales/ar.json | 3 ++- locales/de.json | 3 ++- locales/el.json | 7 ++++--- locales/en-US.json | 1 + locales/eo.json | 3 ++- locales/es.json | 1 + locales/eu.json | 3 ++- locales/fr.json | 3 ++- locales/it.json | 3 ++- locales/nb_NO.json | 3 ++- locales/nl.json | 3 ++- locales/pl.json | 1 + locales/ru.json | 3 ++- locales/uk.json | 3 ++- src/invidious/views/playlist.ecr | 16 +++++++++++++--- 15 files changed, 40 insertions(+), 16 deletions(-) diff --git a/locales/ar.json b/locales/ar.json index 6bd14722d..9e0772428 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -6,6 +6,7 @@ "Unsubscribe": "إلغاء الإشتراك", "Subscribe": "إشتراك", "View channel on YouTube": "زيارة القناة على موقع يوتيوب", + "View playlist on YouTube": "", "newest": "الأجدد", "oldest": "الأقدم", "popular": "الاكثر شعبية", @@ -311,4 +312,4 @@ "Videos": "الفيديوهات", "Playlists": "قوائم التشغيل", "Current version: ": "الإصدار الحالى" -} +} \ No newline at end of file diff --git a/locales/de.json b/locales/de.json index 79ac958dc..4e243c4e5 100644 --- a/locales/de.json +++ b/locales/de.json @@ -6,6 +6,7 @@ "Unsubscribe": "Abbestellen", "Subscribe": "Abonnieren", "View channel on YouTube": "Kanal auf YouTube anzeigen", + "View playlist on YouTube": "", "newest": "neueste", "oldest": "älteste", "popular": "beliebt", @@ -311,4 +312,4 @@ "Videos": "Videos", "Playlists": "Wiedergabelisten", "Current version: ": "Aktuelle Version: " -} +} \ No newline at end of file diff --git a/locales/el.json b/locales/el.json index 9aa1f6ccd..7a12d2df2 100644 --- a/locales/el.json +++ b/locales/el.json @@ -12,6 +12,7 @@ "Unsubscribe": "Απεγγραφή", "Subscribe": "Εγγραφή", "View channel on YouTube": "Προβολή καναλιού στο YouTube", + "View playlist on YouTube": "", "newest": "νεότερα", "oldest": "παλιότερα", "popular": "δημοφιλή", @@ -172,8 +173,8 @@ "Password cannot be empty": "Ο κωδικός πρόσβασης δεν γίνεται να είναι κενός", "Password cannot be longer than 55 characters": "Ο κωδικός πρόσβασης δεν γίνεται να υπερβαίνει τους 55 χαρακτήρες", "Please log in": "Συνδεθείτε", - "Invidious Private Feed for `x`": "Ροή RSS του Invidious για το χρήστη `x`", - "channel:`x`": "κανάλι:`x`", + "Invidious Private Feed for `x`": "Ροή RSS του Invidious για το χρήστη `x`", + "channel:`x`": "κανάλι:`x`", "Deleted or invalid channel": "Διαγραμμένο ή μη έγκυρο κανάλι", "This channel does not exist.": "Αυτό το κανάλι δεν υπάρχει.", "Could not get channel info.": "Αδύναμια εύρεσης πληροφοριών καναλιού.", @@ -356,4 +357,4 @@ "Videos": "Βίντεο", "Playlists": "Λίστες Αναπαραγωγής", "Current version: ": "Τρέχουσα έκδοση: " -} +} \ No newline at end of file diff --git a/locales/en-US.json b/locales/en-US.json index d6a9971dd..5f6245f53 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -12,6 +12,7 @@ "Unsubscribe": "Unsubscribe", "Subscribe": "Subscribe", "View channel on YouTube": "View channel on YouTube", + "View playlist on YouTube": "View playlist on YouTube", "newest": "newest", "oldest": "oldest", "popular": "popular", diff --git a/locales/eo.json b/locales/eo.json index 461c22c5e..3f06c7904 100644 --- a/locales/eo.json +++ b/locales/eo.json @@ -6,6 +6,7 @@ "Unsubscribe": "Malaboni", "Subscribe": "Aboni", "View channel on YouTube": "Vidi kanalon en YouTube", + "View playlist on YouTube": "", "newest": "pli novaj", "oldest": "pli malnovaj", "popular": "popularaj", @@ -311,4 +312,4 @@ "Videos": "Videoj", "Playlists": "Ludlistoj", "Current version: ": "Nuna versio: " -} +} \ No newline at end of file diff --git a/locales/es.json b/locales/es.json index 1a272c8cb..3bf605a56 100644 --- a/locales/es.json +++ b/locales/es.json @@ -6,6 +6,7 @@ "Unsubscribe": "Desuscribirse", "Subscribe": "Suscribirse", "View channel on YouTube": "Ver el canal en YouTube", + "View playlist on YouTube": "", "newest": "más nuevos", "oldest": "más viejos", "popular": "populares", diff --git a/locales/eu.json b/locales/eu.json index c064f727f..aae43603a 100644 --- a/locales/eu.json +++ b/locales/eu.json @@ -6,6 +6,7 @@ "Unsubscribe": "Harpidetza kendu", "Subscribe": "Harpidetu", "View channel on YouTube": "Ikusi kanala YouTuben", + "View playlist on YouTube": "", "newest": "berrienak", "oldest": "zaharrenak", "popular": "ospetsuenak", @@ -309,4 +310,4 @@ "Audio mode": "", "Video mode": "", "Videos": "" -} +} \ No newline at end of file diff --git a/locales/fr.json b/locales/fr.json index 126043c8e..4ebc33ef2 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -6,6 +6,7 @@ "Unsubscribe": "Se désabonner", "Subscribe": "S'abonner", "View channel on YouTube": "Voir la chaîne sur YouTube", + "View playlist on YouTube": "", "newest": "Date d'ajout (la plus récente)", "oldest": "Date d'ajout (la plus ancienne)", "popular": "Les plus populaires", @@ -311,4 +312,4 @@ "Videos": "Vidéos", "Playlists": "Liste de lecture", "Current version: ": "Version :" -} +} \ No newline at end of file diff --git a/locales/it.json b/locales/it.json index eb071c388..10527f9f6 100644 --- a/locales/it.json +++ b/locales/it.json @@ -6,6 +6,7 @@ "Unsubscribe": "Disiscriviti", "Subscribe": "Iscriviti", "View channel on YouTube": "Vedi canale su YouTube", + "View playlist on YouTube": "", "newest": "Data di aggiunta (più recente)", "oldest": "Data di aggiunta (più vecchia)", "popular": "Tendenze", @@ -311,4 +312,4 @@ "Videos": "", "Playlists": "", "Current version: ": "" -} +} \ No newline at end of file diff --git a/locales/nb_NO.json b/locales/nb_NO.json index d7ff101ca..634922450 100644 --- a/locales/nb_NO.json +++ b/locales/nb_NO.json @@ -6,6 +6,7 @@ "Unsubscribe": "Opphev abonnement", "Subscribe": "Abonner", "View channel on YouTube": "Vis kanal på YouTube", + "View playlist on YouTube": "", "newest": "nyeste", "oldest": "eldste", "popular": "populært", @@ -311,4 +312,4 @@ "Videos": "Videoer", "Playlists": "Spillelister", "Current version: ": "Nåværende versjon: " -} +} \ No newline at end of file diff --git a/locales/nl.json b/locales/nl.json index 7367fc343..06bc8f0c0 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -6,6 +6,7 @@ "Unsubscribe": "Abonnement opzeggen", "Subscribe": "Abonneren", "View channel on YouTube": "Bekijk kanaal op Youtube", + "View playlist on YouTube": "", "newest": "nieuwste", "oldest": "oudste", "popular": "populair", @@ -311,4 +312,4 @@ "Videos": "", "Playlists": "", "Current version: ": "" -} +} \ No newline at end of file diff --git a/locales/pl.json b/locales/pl.json index c77098b57..621bdd76e 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -6,6 +6,7 @@ "Unsubscribe": "Odsubskrybuj", "Subscribe": "Subskrybuj", "View channel on YouTube": "Wyświetl kanał na YouTube", + "View playlist on YouTube": "", "newest": "najnowsze", "oldest": "najstarsze", "popular": "popularne", diff --git a/locales/ru.json b/locales/ru.json index d1989d985..f9c562044 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -6,6 +6,7 @@ "Unsubscribe": "Отписаться", "Subscribe": "Подписаться", "View channel on YouTube": "Смотреть канал на YouTube", + "View playlist on YouTube": "", "newest": "самые свежие", "oldest": "самые старые", "popular": "популярные", @@ -311,4 +312,4 @@ "Videos": "Видео", "Playlists": "Плейлисты", "Current version: ": "Текущая версия: " -} +} \ No newline at end of file diff --git a/locales/uk.json b/locales/uk.json index b79d29ab0..e666e2802 100644 --- a/locales/uk.json +++ b/locales/uk.json @@ -6,6 +6,7 @@ "Unsubscribe": "Відписатися", "Subscribe": "Підписатися", "View channel on YouTube": "Подивитися канал на YouTube", + "View playlist on YouTube": "", "newest": "найновіше", "oldest": "найстаріше", "popular": "популярне", @@ -311,4 +312,4 @@ "Videos": "Відео", "Playlists": "Плейлисти", "Current version: ": "Поточна версія: " -} +} \ No newline at end of file diff --git a/src/invidious/views/playlist.ecr b/src/invidious/views/playlist.ecr index b43bd89ce..f6921f9ab 100644 --- a/src/invidious/views/playlist.ecr +++ b/src/invidious/views/playlist.ecr @@ -15,17 +15,27 @@
-

<%= playlist.description_html %>

+
+
+
+
<% videos.each_slice(4) do |slice| %> <% slice.each do |item| %>