Closed arvvoid closed 4 years ago
Create a player file hbogoeu.json in userdata/addon_data/plugin.video.themoviedb.helper/players/ https://github.com/jurialmunkey/plugin.video.themoviedb.helper/wiki/Player-Function
If Tmdb Helper retrieves content in English use this player:
{
"name" : "Hbo GO EU",
"plugin" : "plugin.video.hbogoeu",
"priority" : 500,
"play_movie" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH_FORCE_ENG&query={title}",
{"title": "{title}", "year": "{year}"}
],
"play_episode" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH_FORCE_ENG&query={showname}",
{"title": "{showname}"},
{"position": "{season}"},
{"season": "{season}", "episode": "{episode}"}
],
"search_movie" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={title}",
"search_episode" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={showname}"
}
If Tmdb Helper retrieves content in another language use this player but Hgo Eu have to retrieve content in the same language:
{
"name" : "Hbo GO EU",
"plugin" : "plugin.video.hbogoeu",
"priority" : 500,
"play_movie" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={title}",
{"title": "{title}", "year": "{year}"}
],
"play_episode" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={showname}",
{"title": "{showname}"},
{"position": "{season}"},
{"season": "{season}", "episode": "{episode}"}
],
"search_movie" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={title}",
"search_episode" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={showname}"
}
Modify priority according to preference
If you are using Spain/Nordic region modify player this way:
{
"name" : "Hbo GO EU",
"plugin" : "plugin.video.hbogoeu",
"priority" : 500,
"play_movie" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH_FORCE_ENG&query={title}",
{"title": "{title}"}
],
"play_episode" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH_FORCE_ENG&query={showname}",
{"title": "{showname}"},
{"position": "{season}"},
{"season": "{season}", "episode": "{episode}"}
],
"search_movie" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={title}",
"search_episode" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={showname}"
}
If Tmdb Helper retrieves content in another language use this player but Hgo Eu have to retrieve content in the same language:
{
"name" : "Hbo GO EU",
"plugin" : "plugin.video.hbogoeu",
"priority" : 500,
"play_movie" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={title}",
{"title": "{title}"}
],
"play_episode" : [
"plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={showname}",
{"title": "{showname}"},
{"position": "{season}"},
{"season": "{season}", "episode": "{episode}"}
],
"search_movie" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={title}",
"search_episode" : "plugin://plugin.video.hbogoeu/?mode=4&url=EXTERNAL_SEARCH&query={showname}"
}
Test from branch: https://github.com/arvvoid/plugin.video.hbogoeu/archive/TMDBhelper_player.zip
Has been tested so far only with TMDB helper retrieving content in English EU handler. Nordic/Spain has not been tested at all yet but should work in theory.
I try movies and works OK... I have problem with serie Succession ... now i make more test and then we will see...
No series to play:
When i try The Outsider S01E01 got this:
2020-02-04 18:10:58.451 T:2548 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.themoviedb.helper/?info=play&widget=True&episode=2&tmdb_id=39185&season=9&type=episode 2020-02-04 18:10:58.451 T:2548 ERROR: InputStream: Error opening, plugin://plugin.video.themoviedb.helper/?info=play&widget=True&episode=2&tmdb_id=39185&season=9&type=episode 2020-02-04 18:11:21.284 T:16332 ERROR: XFILE::CDirectory::GetDirectory - Error getting \ 2020-02-04 18:12:53.752 T:16272 NOTICE: [plugin.video.themoviedb.helper] HTTP Error Code: 404 Request: https://api.trakt.tv//shows/tt8550800/seasons/1/episodes/1/ratings 2020-02-04 18:13:12.494 T:15456 NOTICE: Previous line repeats 1 times. 2020-02-04 18:13:12.494 T:15456 NOTICE: Stopping player
When i try Avenue 5 S01E01 got this:
2020-02-04 18:15:02.172 T:2568 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.themoviedb.helper/?info=play&widget=True&episode=2&tmdb_id=39185&season=9&type=episode 2020-02-04 18:15:02.172 T:2568 ERROR: InputStream: Error opening, plugin://plugin.video.themoviedb.helper/?info=play&widget=True&episode=2&tmdb_id=39185&season=9&type=episode 2020-02-04 18:17:20.552 T:10308 ERROR: XFILE::CDirectory::GetDirectory - Error getting \ 2020-02-04 18:18:25.599 T:15948 NOTICE: Stopping player
In both cases i go to TMD Helper - TV Shows - Trending This Week ...
@webmaher when reporting an issue please always provide full debug logs, partial logs are not useful. Anyhow the metadata returned on season listing in HBO go is wrong that's why it is failing so I modified the player with the new player it works for both movies and series.
Update the TMDB Helper player: https://github.com/arvvoid/plugin.video.hbogoeu/pull/112#issuecomment-581810278
Here is an overview of what got changed by this pull request:
Complexity increasing per file
==============================
- hbogolib/base.py 3
Clones removed
==============
+ hbogolib/handlereu.py -1
+ hbogolib/handlersp.py -1
See the complete overview on Codacy
Thanks, great work, well done... i trying seven series and all work perfect on my W10 pc... now i go testing on my android tv.... Thanks again :-)
Everything is just perfect, big thanks for now :-)
Please check that your pull request pass this checks:
Types of changes
Description:
Improve search function for both eu and nordic/Spain handler. This will unlock the ability to create a Tmdb Helper player.