SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can you see if you can play the content listed under ESPN3? There is no need to authenticate when viewing content on ESPN3. See if you can get that to play. I spent all day tweaking the ffmpeg build to match as close as possible to the Raspbian one. No matter what I do, I still get the same error.
I chose Legacy and whatever I try to play, out of those Live / Upcoming / Replay sections I get empty folders and errors in the kodi.log:
Code:
23:54:40.268 T:2966876736 DEBUG: ------ Window Init (DialogBusy.xml) ------
23:54:44.711 T:2807325664 DEBUG: ESPN3: QS: ?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIVE_EVENTS&SPORT=Other%20Events
23:54:44.723 T:2807325664 DEBUG: ESPN3: args {'SPORT': ['Other Events'], 'ESPN_URL': ['https://secure.espn.com/watchespn/feeds/startup?action=replay&channel=accextra,espn3&endDate=20190115&startDate=20190109'], 'MODE': ['/legacy/LIVE_EVENTS']}
23:54:44.725 T:2807325664 DEBUG: ESPN3: root: legacy path: LIVE_EVENTS
23:54:44.727 T:2807325664 DEBUG: ESPN3: class root: appletv
23:54:44.729 T:2807325664 DEBUG: ESPN3: class root: legacy
23:54:44.734 T:2807325664 DEBUG: ESPN3: Looking at method __doc__
23:54:44.735 T:2807325664 DEBUG: ESPN3: Looking at method __init__
23:54:44.737 T:2807325664 DEBUG: ESPN3: Found method with mode legacy
23:54:44.742 T:2807325664 DEBUG: ESPN3: Looking at method __module__
23:54:44.744 T:2807325664 DEBUG: ESPN3: Looking at method index_event
23:54:44.745 T:2807325664 DEBUG: ESPN3: Looking at method index_legacy_live_events
23:54:44.747 T:2807325664 DEBUG: ESPN3: Looking at method list_sports
23:54:44.749 T:2807325664 DEBUG: ESPN3: Found method with mode LIST_SPORTS
23:54:44.751 T:2807325664 DEBUG: ESPN3: Looking at method live_events_mode
23:54:44.753 T:2807325664 DEBUG: ESPN3: Found method with mode LIVE_EVENTS
23:54:44.761 T:2807325664 DEBUG: ESPN3: Executing method
23:54:44.765 T:2807325664 DEBUG: ESPN3 util: Using cache /home/kodi/.kodi/userdata/addon_data/plugin.video.espn_3/d2664529054e317563bbf074631512b3e8bdd092eb0c08618daf4057.xml for https://secure.espn.com/watchespn/feeds/startup?action=replay&channel=accextra,espn3&endDate=20190115&startDate=20190109
23:54:56.210 T:2807325664 DEBUG: ESPN3 util: Using cache /home/kodi/.kodi/userdata/addon_data/plugin.video.espn_3/player_config.xml for https://espn.go.com/watchespn/player/config
23:54:56.645 T:2807325664 DEBUG: Legacy: networkName espn3
23:54:56.657 T:2807325664 DEBUG: Legacy: duration 21600
23:54:56.684 T:2807325664 DEBUG: Addon_Util: startime time.struct_time(tm_year=2019, tm_mon=1, tm_mday=14, tm_hour=19, tm_min=0, tm_sec=0, tm_wday=0, tm_yday=14, tm_isdst=0)
23:54:56.686 T:2807325664 DEBUG: Addon_Util: type replay
23:54:56.688 T:2807325664 DEBUG: Addon_Util: network_id espn3
23:54:56.703 T:2807325664 DEBUG: Addon_Util: Checking auth of espn3
23:54:56.705 T:2807325664 DEBUG: ESPN3 util: Using cache /home/kodi/.kodi/userdata/addon_data/plugin.video.espn_3/user_data.json for http://broadband.espn.go.com/espn3/auth/watchespn/userData?format=json
23:54:56.731 T:2807325664 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: No JSON object could be decoded
Traceback (most recent call last):
File "/home/kodi/.kodi/addons/plugin.video.espn_3/addon.py", line 295, in <module>
getattr(class_def(), method_name)(args)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/register_mode.py", line 8, in new_function
original_function(*args, **kwargs)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/legacy.py", line 99, in live_events_mode
self.index_legacy_live_events(args)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/legacy.py", line 137, in index_legacy_live_events
self.index_event(event, live, upcoming, replay, chosen_sport)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/legacy.py", line 217, in index_event
'channelResourceId': event.find('adobeResource').text
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/addon_util.py", line 207, in index_item
requires_auth = does_requires_auth(network_id)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/addon_util.py", line 72, in does_requires_auth
free_content_check = player_config.can_access_free_content()
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/player_config.py", line 34, in can_access_free_content
return get_user_data()['affvalid'] == 'true'
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/player_config.py", line 30, in get_user_data
return util.get_url_as_json_cache(USER_DATA_URL, USER_DATA_FILE, TIME_DIFFERENCE)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/util.py", line 106, in get_url_as_json_cache
raise e
ValueError: No JSON object could be decoded
-->End of Python script error report<--
23:54:56.770 T:2966876736 DEBUG: ------ Window Init (DialogNotification.xml) ------
23:54:57.477 T:2807325664 INFO: Python script stopped
23:54:57.484 T:2807325664 DEBUG: Thread LanguageInvoker 2807325664 terminating
23:54:57.531 T:2966876736 ERROR: GetDirectory - Error getting plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIVE_EVENTS&SPORT=Other%20Events
23:54:57.538 T:2966876736 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIVE_EVENTS&SPORT=Other%20Events) failed
23:54:57.542 T:2966876736 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIST_SPORTS)
23:54:57.544 T:2966876736 DEBUG: ParentPath = [plugin://plugin.video.espn_3/?MODE=%2flegacy%2f]
23:54:57.560 T:2966876736 DEBUG: Loading items: 15, directory: plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIST_SPORTS sort method: 0, ascending: false
23:54:57.564 T:2716853216 DEBUG: CAddonDatabase::SetLastUsed[plugin.video.espn_3] took 17 ms
23:54:57.592 T:2807325664 DEBUG: Thread BackgroundLoader start, auto delete: false
23:54:57.767 T:2807325664 DEBUG: Thread BackgroundLoader 2807325664 terminating
23:54:57.853 T:2966876736 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
I'm afraid I'm not able to watch anything from Europe and I don't have a VPN to exit in the States.
Regarding your reply to bassmadrigal, you should focus on video add-ons that are using (authentication) encrypted HLS streams, that's ESPN_3 and that's where you get the issue. I'm using a few video add-ons for watching content here in Europe and I have no issues with them, but none is using HLS AFAIK.
[B]EDIT:
Don't know how to put an escape char in the url line above to avoid having the stupid sign, just added \ between : and D
You can use the [noparse][/noparse] tags to prevent the forum from making smilies out of those characters. [noparse]:D[/noparse] will produce :D
Quote:
Originally Posted by stormtracknole
I tried the CNN add-on, and got some errors. However, it also did not work under Raspbian. I tried the HGTV one for the heck of it, and that worked fine. I can't remember right now which other application to try. If you can download the ESPN add-on, can you select the content listed under ESPN3? That should be free content and no sign in is necessary. Thanks!
I chose Legacy and whatever I try to play, out of those Live / Upcoming / Replay sections I get empty folders and errors in the kodi.log:
Code:
23:54:40.268 T:2966876736 DEBUG: ------ Window Init (DialogBusy.xml) ------
23:54:44.711 T:2807325664 DEBUG: ESPN3: QS: ?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIVE_EVENTS&SPORT=Other%20Events
23:54:44.723 T:2807325664 DEBUG: ESPN3: args {'SPORT': ['Other Events'], 'ESPN_URL': ['https://secure.espn.com/watchespn/feeds/startup?action=replay&channel=accextra,espn3&endDate=20190115&startDate=20190109'], 'MODE': ['/legacy/LIVE_EVENTS']}
23:54:44.725 T:2807325664 DEBUG: ESPN3: root: legacy path: LIVE_EVENTS
23:54:44.727 T:2807325664 DEBUG: ESPN3: class root: appletv
23:54:44.729 T:2807325664 DEBUG: ESPN3: class root: legacy
23:54:44.734 T:2807325664 DEBUG: ESPN3: Looking at method __doc__
23:54:44.735 T:2807325664 DEBUG: ESPN3: Looking at method __init__
23:54:44.737 T:2807325664 DEBUG: ESPN3: Found method with mode legacy
23:54:44.742 T:2807325664 DEBUG: ESPN3: Looking at method __module__
23:54:44.744 T:2807325664 DEBUG: ESPN3: Looking at method index_event
23:54:44.745 T:2807325664 DEBUG: ESPN3: Looking at method index_legacy_live_events
23:54:44.747 T:2807325664 DEBUG: ESPN3: Looking at method list_sports
23:54:44.749 T:2807325664 DEBUG: ESPN3: Found method with mode LIST_SPORTS
23:54:44.751 T:2807325664 DEBUG: ESPN3: Looking at method live_events_mode
23:54:44.753 T:2807325664 DEBUG: ESPN3: Found method with mode LIVE_EVENTS
23:54:44.761 T:2807325664 DEBUG: ESPN3: Executing method
23:54:44.765 T:2807325664 DEBUG: ESPN3 util: Using cache /home/kodi/.kodi/userdata/addon_data/plugin.video.espn_3/d2664529054e317563bbf074631512b3e8bdd092eb0c08618daf4057.xml for https://secure.espn.com/watchespn/feeds/startup?action=replay&channel=accextra,espn3&endDate=20190115&startDate=20190109
23:54:56.210 T:2807325664 DEBUG: ESPN3 util: Using cache /home/kodi/.kodi/userdata/addon_data/plugin.video.espn_3/player_config.xml for https://espn.go.com/watchespn/player/config
23:54:56.645 T:2807325664 DEBUG: Legacy: networkName espn3
23:54:56.657 T:2807325664 DEBUG: Legacy: duration 21600
23:54:56.684 T:2807325664 DEBUG: Addon_Util: startime time.struct_time(tm_year=2019, tm_mon=1, tm_mday=14, tm_hour=19, tm_min=0, tm_sec=0, tm_wday=0, tm_yday=14, tm_isdst=0)
23:54:56.686 T:2807325664 DEBUG: Addon_Util: type replay
23:54:56.688 T:2807325664 DEBUG: Addon_Util: network_id espn3
23:54:56.703 T:2807325664 DEBUG: Addon_Util: Checking auth of espn3
23:54:56.705 T:2807325664 DEBUG: ESPN3 util: Using cache /home/kodi/.kodi/userdata/addon_data/plugin.video.espn_3/user_data.json for http://broadband.espn.go.com/espn3/auth/watchespn/userData?format=json
23:54:56.731 T:2807325664 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: No JSON object could be decoded
Traceback (most recent call last):
File "/home/kodi/.kodi/addons/plugin.video.espn_3/addon.py", line 295, in <module>
getattr(class_def(), method_name)(args)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/register_mode.py", line 8, in new_function
original_function(*args, **kwargs)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/legacy.py", line 99, in live_events_mode
self.index_legacy_live_events(args)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/legacy.py", line 137, in index_legacy_live_events
self.index_event(event, live, upcoming, replay, chosen_sport)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/legacy.py", line 217, in index_event
'channelResourceId': event.find('adobeResource').text
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/addon_util.py", line 207, in index_item
requires_auth = does_requires_auth(network_id)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/addon_util.py", line 72, in does_requires_auth
free_content_check = player_config.can_access_free_content()
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/player_config.py", line 34, in can_access_free_content
return get_user_data()['affvalid'] == 'true'
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/player_config.py", line 30, in get_user_data
return util.get_url_as_json_cache(USER_DATA_URL, USER_DATA_FILE, TIME_DIFFERENCE)
File "/home/kodi/.kodi/addons/plugin.video.espn_3/resources/lib/util.py", line 106, in get_url_as_json_cache
raise e
ValueError: No JSON object could be decoded
-->End of Python script error report<--
23:54:56.770 T:2966876736 DEBUG: ------ Window Init (DialogNotification.xml) ------
23:54:57.477 T:2807325664 INFO: Python script stopped
23:54:57.484 T:2807325664 DEBUG: Thread LanguageInvoker 2807325664 terminating
23:54:57.531 T:2966876736 ERROR: GetDirectory - Error getting plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIVE_EVENTS&SPORT=Other%20Events
23:54:57.538 T:2966876736 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIVE_EVENTS&SPORT=Other%20Events) failed
23:54:57.542 T:2966876736 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIST_SPORTS)
23:54:57.544 T:2966876736 DEBUG: ParentPath = [plugin://plugin.video.espn_3/?MODE=%2flegacy%2f]
23:54:57.560 T:2966876736 DEBUG: Loading items: 15, directory: plugin://plugin.video.espn_3/?ESPN_URL=https%3a%2f%2fsecure.espn.com%2fwatchespn%2ffeeds%2fstartup%3faction%3dreplay%26channel%3daccextra%2cespn3%26endDate%3d20190115%26startDate%3d20190109&MODE=%2flegacy%2fLIST_SPORTS sort method: 0, ascending: false
23:54:57.564 T:2716853216 DEBUG: CAddonDatabase::SetLastUsed[plugin.video.espn_3] took 17 ms
23:54:57.592 T:2807325664 DEBUG: Thread BackgroundLoader start, auto delete: false
23:54:57.767 T:2807325664 DEBUG: Thread BackgroundLoader 2807325664 terminating
23:54:57.853 T:2966876736 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
I'm afraid I'm not able to watch anything from Europe and I don't have a VPN to exit in the States.
Regarding your reply to bassmadrigal, you should focus on video add-ons that are using (authentication) encrypted HLS streams, that's ESPN_3 and that's where you get the issue. I'm using a few video add-ons for watching content here in Europe and I have no issues with them, but none is using HLS AFAIK.
No worries. At this point, I'm okay to switching to Fedora or Raspbian for ARM in order to get this working. This was driving me crazy. I've been working on this over a month. I was ready to throw the towel, but figured that I should at least throw the question here in order to have different set of eyes look at it. I even copied the $HOME/.kodi/{addons,userdata} from my Raspbian and had no luck. I hate to give up on this, but there are only 24 hours in a day. Thank you once again for taking the time to look at this.
Quote:
Originally Posted by bassmadrigal
You can use the [noparse][/noparse] tags to prevent the forum from making smilies out of those characters. [noparse]:D[/noparse] will produce :D
No worries. At this point, I'm okay to switching to Fedora or Raspbian for ARM in order to get this working. This was driving me crazy. I've been working on this over a month. I was ready to throw the towel, but figured that I should at least throw the question here in order to have different set of eyes look at it. I even copied the $HOME/.kodi/{addons,userdata} from my Raspbian and had no luck. I hate to give up on this, but there are only 24 hours in a day. Thank you once again for taking the time to look at this.
It could be also related to python, that m3u8 plug-in helper is the one providing ffmpeg with the playlist and apparently also handling the encryption keys: https://github.com/globocom/m3u8
On Slackware ARM (14.2 & -current) my Kodi binaries are linked to python 2.7:
Check in Raspbian & Fedora the python version, maybe it's 3.x ...
Indeed, too much time spent on this. You should describe your issue in that Kodi thread, I'm sure they'll look into it.
As mentioned in my previous post, I suspect there's something related to python, we excluded pretty much all other components in our analysis/discussion.
So I can finally mark this thread as solved. I upgraded ffmpeg to 4.1.3 with gnutls disabled and openssl enabled. Built kodi-18.1-Leia with fmt (not available on SBo), fstrcmp (not available on SBo), and flatbuffers (version 1.10.0) as dependencies. The ESPN app is now working as intended.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.