Skip to content

Commit

Permalink
- Migrate to Transifex
Browse files Browse the repository at this point in the history
- Fix localization JSON
- Add play highest video option (#12)
  • Loading branch information
KOL committed Aug 29, 2015
1 parent df3df9f commit 57f77f6
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<key>CFBundleSignature</key>
<string>hook</string>
<key>CFBundleVersion</key>
<string>3.2</string>
<string>3.4</string>

<key>PlexPluginVersionUrl</key>
<string>http://bit.ly/1FuE3dz</string>
Expand Down
2 changes: 2 additions & 0 deletions Contents/Services/Shared Code/video.pys
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ RESOLUTIONS = {
36: 240,
}

MAX_RESOLUTION = 22

USER_AGENT = (
'Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) '
'AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 '
Expand Down
7 changes: 6 additions & 1 deletion Contents/Services/URL/YouTubeTV/ServiceCode.pys
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ def MetadataObjectForURL(url):


def MediaObjectsForURL(url, definition='hd'):

definitions = Video.DEFINITIONS[definition]
if Prefs['play_highest']:
definitions = (Video.MAX_RESOLUTION,)

return [
MediaObject(
parts=[
Expand All @@ -165,7 +170,7 @@ def MediaObjectsForURL(url, definition='hd'):
video_codec=VideoCodec.H264,
audio_codec=AudioCodec.AAC,
optimized_for_streaming=True
) for key in Video.DEFINITIONS[definition]
) for key in definitions
]


Expand Down
8 changes: 8 additions & 0 deletions Contents/Services/URL/YouTubeTV/ServicePrefs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"id": "play_highest",
"type": "bool",
"label": "Always play highest quality",
"default": "false",
},
]
3 changes: 2 additions & 1 deletion Contents/Strings/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
"Action complete": "Action complete",
"An error has occurred": "An error has occurred",
"Sign out": "Sign out",
"Subscriptions list sorting order": "Subscriptions list sorting order"
"Subscriptions list sorting order": "Subscriptions list sorting order",
"Always play highest quality": "Always play highest quality"
}
10 changes: 5 additions & 5 deletions Contents/Strings/fr-BE.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"Error": "Erreur",
"Next page": "Page suivante",
"No entries found": "Aucune entrée n\'a été trouvée",
"No entries found": "Aucune entrée n'a été trouvée",
"Search": "Rechercher",
"Search Video": "Rechercher une vidéo",
"Success": "Succès",
"Title": "YouTubeTV",
"Search HD only": "Rechercher uniquement en haute définition",
"Items per page": "Nombre d\'éléments par page",
"Items per page": "Nombre d'éléments par page",
"likes": "Vidéos que vous aimez",
"favorites": "Favoris",
"uploads": "Vidéos",
Expand All @@ -23,8 +23,8 @@
"Categories": "Catégories",
"Subscriptions": "Abonnements",
"More playlists": "Plus de listes de lecture",
"More subscriptions": "Plus d\'abonnements",
"Complete authorization": "Finaliser l\'autorisation",
"More subscriptions": "Plus d'abonnements",
"Complete authorization": "Finaliser l'autorisation",
"Service temporarily unavailable": "Service temporairement indisponible",
"Preferred Region for Videos and channels": "Région de prédilection pour les vidéos et les chaînes",
"Preferred language for Videos and channels": "Langue de prédilection pour les vidéos et les chaînes",
Expand All @@ -35,7 +35,7 @@
"codeIs": "Code : %s",
"Play video": "Lire la vidéo",
"Related videos": "Vidéos suggérées",
"I like this": "J\'aime ce contenu",
"I like this": "J'aime ce contenu",
"Add to favorites": "Ajouter aux favoris",
"Extended video info in My subscriptions": "Informations étendues pour les vidéos de mes abonnements",
"Extended video info in Playlists": "Informations étendues pour les vidéos des listes de lecture",
Expand Down
10 changes: 5 additions & 5 deletions Contents/Strings/fr.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"Error": "Erreur",
"Next page": "Page suivante",
"No entries found": "Aucune entrée n\'a été trouvée",
"No entries found": "Aucune entrée n'a été trouvée",
"Search": "Rechercher",
"Search Video": "Rechercher une vidéo",
"Success": "Succès",
"Title": "YouTubeTV",
"Search HD only": "Rechercher uniquement en haute définition",
"Items per page": "Nombre d\'éléments par page",
"Items per page": "Nombre d'éléments par page",
"likes": "Vidéos que vous aimez",
"favorites": "Favoris",
"uploads": "Vidéos",
Expand All @@ -23,8 +23,8 @@
"Categories": "Catégories",
"Subscriptions": "Abonnements",
"More playlists": "Plus de listes de lecture",
"More subscriptions": "Plus d\'abonnements",
"Complete authorization": "Finaliser l\'autorisation",
"More subscriptions": "Plus d'abonnements",
"Complete authorization": "Finaliser l'autorisation",
"Service temporarily unavailable": "Service temporairement indisponible",
"Preferred Region for Videos and channels": "Région de prédilection pour les vidéos et les chaînes",
"Preferred language for Videos and channels": "Langue de préférence pour les vidéos et les chaînes",
Expand All @@ -35,7 +35,7 @@
"codeIs": "Code : %s",
"Play video": "Lire la vidéo",
"Related videos": "Vidéos suggérées",
"I like this": "J\'aime ce contenu",
"I like this": "J'aime ce contenu",
"Add to favorites": "Ajouter aux favoris",
"Extended video info in My subscriptions": "Informations étendues pour les vidéos de mes abonnements",
"Extended video info in Playlists": "Informations étendues pour les vidéos des listes de lecture",
Expand Down
2 changes: 1 addition & 1 deletion Contents/Strings/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"Extended video info in Categories": "Info estese dei video in Categorie",
"Extended video info in Search": "Info estese in Cerca",
"Update available: %s": "Aggiornamento disponibile: %s",
"Install latest version of the channel.": "Installa l\'ultima versione del canale.",
"Install latest version of the channel.": "Installa l'ultima versione del canale.",
"Channel updated to version %s": "Canale aggiornato alla versione %s",
"Remove from playlist": "Rimuovi dalla playlist",
"Action complete": "Azione completata",
Expand Down
10 changes: 5 additions & 5 deletions Contents/Strings/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"Title": "YouTubeTV",
"Search HD only": "Zoek alleen HD",
"Items per page": "Items per pagina",
"likes": "Video\'s die ik leuk vind",
"likes": "Video's die ik leuk vind",
"favorites": "Favorieten",
"uploads": "Video\'s",
"uploads": "Video's",
"watchHistory": "Geschiedenis",
"watchLater": "Later bekijken",
"Authorize": "Machtigen",
Expand All @@ -26,15 +26,15 @@
"More subscriptions": "Meer abonnementen",
"Complete authorization": "Machtiging voltooien",
"Service temporarily unavailable": "Service tijdelijk niet beschikbaar",
"Preferred Region for Videos and channels": "Voorkeursregio voor video\'s en kanalen",
"Preferred language for Videos and channels": "Voorkeurstaal voor video\'s en kanalen",
"Preferred Region for Videos and channels": "Voorkeursregio voor video's en kanalen",
"Preferred language for Videos and channels": "Voorkeurstaal voor video's en kanalen",
"Search playlists": "Zoek afspeellijsten",
"Search channels": "Zoek kanalen",
"Browse channels": "Browse door kanalen",
"enterCodeSite": "Voer code \"%s\" in %s",
"codeIs": "Code: %s",
"Play video": "Speel video af",
"Related videos": "Gerelateerde video\'s",
"Related videos": "Gerelateerde video's",
"I like this": "Ik vind dit leuk",
"Add to favorites": "Toevoegen aan favorieten",
"Extended video info in My subscriptions": "Uitgebreide video info in Mijn abonnementen",
Expand Down
3 changes: 2 additions & 1 deletion Contents/Strings/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
"Action complete": "Действие выполнено",
"An error has occurred": "Произошла ошибка",
"Sign out": "Выйти",
"Subscriptions list sorting order": "Порядок сортировки Подписок"
"Subscriptions list sorting order": "Порядок сортировки Подписок",
"Always play highest quality": "Всегда проигрывать максимальное качество"
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ You can install it using the [instruction](https://support.plex.tv/hc/en-us/arti
[![Donate](http://storage5.static.itmages.com/i/14/1206/h_1417885701_6519792_bb39979c38.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=27YXJGA4W5VP4&lc=RU&item_name=KOL%27s%20Plex%20YouTubeTV%20Plugin&item_number=YouTubeTV%2ebundle&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted "Donate for project support") [![Поддержать](http://storage6.static.itmages.com/i/14/1206/h_1417885181_1364213_1508537bad.png)](https://money.yandex.ru/embed/shop.xml?account=410012666604862&quickpay=shop&payment-type-choice=on&writer=seller&targets=%D0%9F%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%BA%D0%B0+Plex+YouTubeTV+Plugin&targets-hint=&default-sum=300&button-text=03&comment=on&hint=%D0%92%D0%B0%D1%88%D0%B8+%D0%BF%D0%BE%D0%B6%D0%B5%D0%BB%D0%B0%D0%BD%D0%B8%D1%8F&successURL=https%3A%2F%2Fgithub.com%2Fkolsys%2FYoutTubeTV.bundle "Поддержкать проект")



Help with localization
-------

[YouTubeTV on Transifex](https://www.transifex.com/kolsys/youtubetv/)

0 comments on commit 57f77f6

Please sign in to comment.