whats-happening-rightnow / justfor.fans.ripper

24 stars 15 forks source link

change download method and add metadata to files #10

Open nichtmax opened 1 year ago

nichtmax commented 1 year ago

looks like xvid.com changed behavior, I only got m3u8 files with the original version of the script. I changed the download method to yt-dlp, what can download the contents of the m3u8 file. Metadata is added to the files via ffmpeg.

I'm on MacOS, I don't see any reason why that shouldn't work with other OSes.

original-copy commented 1 year ago

Can the code be modified to skip checking of metadata if the file already exist?

Also, seems like the code will break if there is an error with a particular post. Can it be modified so that the system will skip to the next post when an error is encountered?

Error opening input files: No such file or directory Traceback (most recent call last): File "C:\JustForFans\app.py", line 201, in parse_and_save_content(html_content) File "C:\JustForFans\app.py", line 173, in parse_and_save_content add_metadata_to_video(file_path, post.title, post.name, post.post_date, post.full_text) File "C:\JustForFans\app.py", line 82, in add_metadata_to_video os.remove(video_path) FileNotFoundError: [WinError 2] The system cannot find the file specified: