Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ msgstr ""

### MAIN MENU
msgctxt "#30010"
msgid "My favorites"
msgid "My list"
msgstr ""

msgctxt "#30011"
Expand Down Expand Up @@ -111,15 +111,15 @@ msgid "My programs"
msgstr ""

msgctxt "#30041"
msgid "Alphabetically sorted list of My TV programs"
msgid "All tv shows you follow"
msgstr ""

msgctxt "#30042"
msgid "Movies"
msgid "My playlist"
msgstr ""

msgctxt "#30043"
msgid "All movies available on VRT MAX"
msgid "All episodes you follow"
msgstr ""

msgctxt "#30044"
Expand All @@ -139,11 +139,11 @@ msgid "All music on VRT MAX"
msgstr ""

msgctxt "#30048"
msgid "Most recent"
msgid "Movies"
msgstr ""

msgctxt "#30049"
msgid "Recently published episodes of My TV programs"
msgid "All movies available on VRT MAX"
msgstr ""

msgctxt "#30050"
Expand Down
24 changes: 12 additions & 12 deletions resources/language/resource.language.nl_nl/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ msgstr ""

### MAIN MENU
msgctxt "#30010"
msgid "My favorites"
msgstr "Mijn favorieten"
msgid "My list"
msgstr "Mijn lijst"

msgctxt "#30011"
msgid "Browse only the programs you follow"
Expand Down Expand Up @@ -111,16 +111,16 @@ msgid "My programs"
msgstr "Mijn programma's"

msgctxt "#30041"
msgid "Alphabetically sorted list of My TV programs"
msgstr "Alle tv-programma's die je volgt in alfabetische volgorde"
msgid "All tv shows you follow"
msgstr "Alle tv-programma's die je volgt"

msgctxt "#30042"
msgid "Movies"
msgstr "Films"
msgid "My playlist"
msgstr "Mijn afspeellijst"

msgctxt "#30043"
msgid "All movies available on VRT MAX"
msgstr "Alle films beschikbaar op VRT MAX"
msgid "All episodes you follow"
msgstr "Alle afleveringen van tv-programma's die je volgt"

msgctxt "#30044"
msgid "Documentaries"
Expand All @@ -139,12 +139,12 @@ msgid "All music on VRT MAX"
msgstr "Alle muziek op VRT MAX"

msgctxt "#30048"
msgid "Most recent"
msgstr "Meest recent"
msgid "Movies"
msgstr "Films"

msgctxt "#30049"
msgid "Recently published episodes of My TV programs"
msgstr "Recent gepubliceerde afleveringen van tv-programma's die je volgt"
msgid "All movies available on VRT MAX"
msgstr "Alle films beschikbaar op VRT MAX"

msgctxt "#30050"
msgid "Soon offline"
Expand Down
50 changes: 24 additions & 26 deletions resources/lib/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,25 @@ def delete_tokens():
TokenResolver().delete_tokens()


@plugin.route('/follow/<program_id>/<program_title>')
def follow(program_id, program_title):
@plugin.route('/follow/<entity_id>/<entity_title>')
def follow(entity_id, entity_title):
"""The API interface to follow a program used by the context menu"""
from base64 import b64decode
from api import set_favorite
set_favorite(program_id=program_id)
notification(message=localize(30411, title=unquote_plus(program_title)))
entity_id = b64decode(entity_id.encode('utf-8')).decode('utf-8')
set_favorite(entity_id=entity_id)
notification(message=localize(30411, title=unquote_plus(entity_title)))
container_refresh()


@plugin.route('/unfollow/<program_id>/<program_title>')
def unfollow(program_id, program_title):
@plugin.route('/unfollow/<entity_id>/<entity_title>')
def unfollow(entity_id, entity_title):
"""The API interface to unfollow a program used by the context menu"""
from base64 import b64decode
from api import set_favorite
set_favorite(program_id=program_id, favorited=False)
notification(message=localize(30412, title=unquote_plus(program_title)))
entity_id = b64decode(entity_id.encode('utf-8')).decode('utf-8')
set_favorite(entity_id=entity_id, favorited=False)
notification(message=localize(30412, title=unquote_plus(entity_title)))
container_refresh()


Expand All @@ -70,20 +74,12 @@ def favorites_programs(end_cursor=''):
VRTPlayer().show_favorites_tvshow_menu(end_cursor=end_cursor)


@plugin.route('/favorites/recent')
@plugin.route('/favorites/recent/<end_cursor>')
def favorites_recent(end_cursor=''):
"""The favorites recent listing"""
@plugin.route('/favorites/episodes')
@plugin.route('/favorites/episodes/<end_cursor>')
def favorites_episodes(end_cursor=''):
"""The favorites 'My episodes' listing"""
from vrtplayer import VRTPlayer
VRTPlayer().show_recent_menu(end_cursor=end_cursor, use_favorites=True)


@plugin.route('/favorites/offline')
@plugin.route('/favorites/offline/<end_cursor>')
def favorites_offline(end_cursor=''):
"""The favorites offline listing"""
from vrtplayer import VRTPlayer
VRTPlayer().show_offline_menu(end_cursor=end_cursor, use_favorites=True)
VRTPlayer().show_favorites_episodes_menu(end_cursor=end_cursor)


@plugin.route('/resumepoints/continue')
Expand All @@ -94,11 +90,13 @@ def resumepoints_continue(end_cursor=''):
VRTPlayer().show_continue_menu(end_cursor=end_cursor)


@plugin.route('/resumepoints/continue/delete/<episode_id>')
def resumepoints_continue_delete(episode_id):
"""The API interface to delete episodes from continue watching listing"""
from api import delete_continue
delete_continue(episode_id)
@plugin.route('/list/delete/<episode_id>/<list_name>')
def list_delete(episode_id, list_name):
"""The API interface to delete episodes from a list"""
from base64 import b64decode
list_name = b64decode(list_name.encode('utf-8')).decode('utf-8')
from api import delete_from_list
delete_from_list(episode_id, list_name)
container_refresh()


Expand Down
Loading
Loading