Open L0wbyte opened 2 years ago
Thanks!
reviving this fix after 2 years ;) the cisco search api changed format for search results, so latest changes fix this.
additionally synced from master.
@dirkf mind taking a look and perhaps run the CI again?
Checklist
Verbose log
Description
Raising this bug report to submit (and link) a pull request fixing the issues with the ciscolive extractor outlined below:
youtube-dl fails to find valid video items for download when calling rainfocus api's (eg https://events.rainfocus.com/api/session).
after testing with various inputs this appears to be caused by invalid api tokens (these are currently static in the extractor, but have changed). https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/ciscolive.py#L24-L25 these tokens have been present since the initial commit in Oct 2018 https://github.com/ytdl-org/youtube-dl/blob/05bd5e9c77e0e8acb95f47396be4c970fc9f39c4/youtube_dl/extractor/ciscolive.py
however, it may be more ideal to fetch these tokens 'live' just as a browser would.
additionally tests executed by
both fail due to a mixture of the above problem, and the sessions/video's & search parameters referenced are no longer valid on the ciscolive site.
CiscoLiveSession video's/sessions appear to eventually be removed/become inaccessible on the ciscolive site (likely after the technical material becomes less relevant after 3-4 years). The oldest searchable event appears to now be from 2018. meaning session id's such as
1423353499155001FoSs
(the test url for this class) results in a104 - No session to display
even if substituted into the new url format. https://ciscolive.cisco.com/on-demand-library/?#/session/1423353499155001FoSs -> https://www.ciscolive.com/on-demand/on-demand-library.html?search=#/session/1423353499155001FoSs tests should be updated to pass and repeatable within the browser (the previous tests url's are no longer valid)CiscoLiveSearch old: https://ciscolive.cisco.com/on-demand-library/?search.event=ciscoliveus2018&search.technicallevel=scpsSkillLevel_aintroductory&search.focus=scpsSessionFocus_designAndDeployment#/ new: https://www.ciscolive.com/on-demand/on-demand-library.html?search.event=1636046385176005FbBU&search.technology=scpsTechnology_dataCenter&search.technicallevel=scpsSkillLevel_aintroductory#/ note search.event now contains id's 1636046385176005FbBU vs ciscoliveus2018 tests should be updated to pass and repeatable within the browser (the previous tests url's are no longer valid)
lastly the domain
ciscolive.cisco.com
is no longer valid for the site (dns returns an NXDOMAIN status) the correct domain ishttps://www.ciscolive.com/
and the url path has changed.old: https://ciscolive.cisco.com/on-demand-library/?#/session/1423353499155001FoSs new: https://www.ciscolive.com/on-demand/on-demand-library.html?search=#/session/16360600004400017rMx
i will submit a pull request to address these shortly.