holoarchivists / openrec-dl Goto Github PK
View Code? Open in Web Editor NEWDownload recorded streams from OPENREC.tv
License: The Unlicense
Download recorded streams from OPENREC.tv
License: The Unlicense
Please support Login using the email (username) and password as follows:
-u, --username USERNAME
-p, --password PASSWORD
Hi,
I'm not sure if anyone is still working on this tool but I can always try :) As of this month, I suddenly get an error downloading from openrec:
C:\Users\marlo\openrec>python openrec-dl.py -V --username xxx --password xxx https://www.openrec.tv/live/wez9mp0158l
[info:wez9mp0158l] no public playlist found
[playlist:wez9mp0158l] got playlist https://d3cfw2mckicdfw.cloudfront.net/1bce1f2d3ec4c1d19e336e2c77577078298183d630/playlist.m3u8
[playlist:wez9mp0158l] index playlist not identified, please report this at 'https://github.com/HoloArchivists/OPENREC-dl/issues'
[get-m3u8-info] retrieving playlist from https://d3cfw2mckicdfw.cloudfront.net/1bce1f2d3ec4c1d19e336e2c77577078298183d630/playlist.m3u8
[movie:wez9mp0158l] could not find video format 'best'. to view all available formats, use --list-formats
This happens to be a video from a channel I'm subscribed to, I have a valid username and password. The older video's on this channel (1 per month) I have downloaded in the past without problems, if I try to download them again now they raise the same error. Also I've tried to download a free movie from another channel, same error. All movies I've tried to download, I also tried to watch them in my browser (chrome) and that works just fine.
I hope you're looking for a new Openrec challenge ;) Thanks anyway for the movies I've been able to download with this tool so far!!
Traceback (most recent call last):
File "/home/USER/Downloads/OPENREC-dl-main/./openrec-dl.py", line 437, in <module>
main()
File "/home/USER/Downloads/OPENREC-dl-main/./openrec-dl.py", line 425, in main
dl_movie(api_session, openrec_m.group("id"))
File "/home/USER/Downloads/OPENREC-dl-main/./openrec-dl.py", line 254, in dl_movie
dl_m3u8_video(movie_id, movie_string, downloading_format)
File "/home/USER/Downloads/OPENREC-dl-main/./openrec-dl.py", line 290, in dl_m3u8_video
mpeg_convert(os.path.join(args.directory, f"{movie_filename}"))
File "/home/USER/Downloads/OPENREC-dl-main/./openrec-dl.py", line 299, in mpeg_convert
print_log("mpeg-convert", f"converting video to '{movie_filename}.mp4'")
NameError: name 'movie_filename' is not defined
Simple fix, I'll make a PR.
E:\>openrec-dl.py --cookies openrec.txt --write-info-json --write-thumbnail --write-live-chat https://www.openrec.tv/live/u7ERt3xbl4i
[info:u7ERt3xbl4i] no public playlist found
[info:u7ERt3xbl4i] writing video information to 'osu owo_ [u7ERt3xbl4i].info.json'
[thumbnail:u7ERt3xbl4i] writing thumbnail to 'osu owo_ [u7ERt3xbl4i].png'
[live-chat:u7ERt3xbl4i] writing live chat to osu owo_ [u7ERt3xbl4i].live_chat.json
[movie:u7ERt3xbl4i] writing video to 'osu owo_ [u7ERt3xbl4i].ts'
←[K[movie:u7ERt3xbl4i] |████████████████████████████████| 100.0% ETA 0:0076
←[?25hTraceback (most recent call last):
File "E:\openrec-dl.py", line 515, in <module>
main()
File "E:\openrec-dl.py", line 503, in main
dl_movie(pub_api_session, priv_api_session, openrec_m.group("id"))
File "E:\openrec-dl.py", line 293, in dl_movie
dl_m3u8_video(movie_id, movie_string, downloading_format)
File "E:\openrec-dl.py", line 327, in dl_m3u8_video
os.rename(f"{movie_path}.ts.tmp", f"{movie_path}.ts")
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'E:\\osu owo_ [u7ERt3xbl4i].ts.tmp' -> 'E:\\osu owo_ [u7ERt3xbl4i].ts'
Not sure what causes this, potentially this is an issue on my side? Will try another download, maybe with admin perms even though that's likely not related to it.
Maybe this happens because it's a 2016 video? I don't know, kinda weird.
E:\>openrec-dl.py --cookies openrec.txt --write-info-json --write-thumbnail --write-live-chat https://www.openrec.tv/live/NWfYjanhwgZ
[info:NWfYjanhwgZ] no public playlist found
[info:NWfYjanhwgZ] writing video information to 'osu_ _3 [NWfYjanhwgZ].info.json'
[thumbnail:NWfYjanhwgZ] writing thumbnail to 'osu_ _3 [NWfYjanhwgZ].png'
[live-chat:NWfYjanhwgZ] writing live chat to osu_ _3 [NWfYjanhwgZ].live_chat.json
[movie:NWfYjanhwgZ] could not find video format 'Source'. to view all available formats, use --list-formats
E:\>openrec-dl.py --cookies openrec.txt --write-info-json --write-thumbnail --write-live-chat -F https://www.openrec.tv/live/NWfYjanhwgZ
[info:NWfYjanhwgZ] no public playlist found
[movie:NWfYjanhwgZ] available formats:
NAME GROUP-ID RESOLUTION FPS TBR CODECS
------- -------- ---------- ---- ------ ------------------------
py openrec-dl.py https://www.openrec.tv/live/u7ERt3xbl4i
Traceback (most recent call last):
File "E:\openrec-dl.py", line 437, in <module>
main()
File "E:\openrec-dl.py", line 425, in main
dl_movie(api_session, openrec_m.group("id"))
File "E:\openrec-dl.py", line 216, in dl_movie
formats_list = get_m3u8_info(m_json["media"]["url"])
File "E:\openrec-dl.py", line 312, in get_m3u8_info
m3u8_text = requests.get(playlist_link).text
File "C:\Python39\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Python39\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python39\lib\site-packages\requests\sessions.py", line 528, in request
prep = self.prepare_request(req)
File "C:\Python39\lib\site-packages\requests\sessions.py", line 456, in prepare_request
p.prepare(
File "C:\Python39\lib\site-packages\requests\models.py", line 316, in prepare
self.prepare_url(url, params)
File "C:\Python39\lib\site-packages\requests\models.py", line 390, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'playlist.m3u8': No schema supplied. Perhaps you meant http://playlist.m3u8?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.