freyta / WWE-Network-Downloader

My own WWE downloader.
38 stars 11 forks source link

No such file or directory #9

Open cordellstoyer opened 3 years ago

cordellstoyer commented 3 years ago

This program works fantastic! I'm just running into an occasional issue where some videos just won't download. It goes through the whole process only to give a "no such file or directory" error in red. Do you know how I can fix this?

freyta commented 3 years ago

Hey mate.

Want to shoot through which videos this happens with? Maybe a copy of the output log as well. Then I can look into it

cordellstoyer commented 3 years ago

Looks like the only one that it happened to so far was the Edge & Christian show S1E9. Could just be a fluke.

I had another couple quick questions, is there a way to queue up multiple downloads? I was also curious if your program allows you to stitch together multiple clips into one file?

Thanks for your help!

fttdgc commented 3 years ago

I'm experiencing the same thing with some content. The majority will download fine though there's a select few pieces where the full download will complete, but, when it comes time to merge, it'll run into an error.

One example is https://watch.wwe.com/program/Razor-Ramon--12375

freyta commented 3 years ago

@fttdgc - Can you post the output log? It seems to work fine for me.

Command: python main.py -t /program/Razor-Ramon--12375 -q 6 Output:

Succesfully logged in
Got the video information

Starting to write the metadata file
Finished writing the metadata file

Starting to write the stream title
Finished writing the stream title

aac files finished downloadingof 1219
ts files finished downloadingof 1219

Starting to write the metadata file
Finished writing the metadata file

Starting to write the stream title
Finished writing the stream title

ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-shared --enable-version3
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mpegts, from 'temp/Razor Ramon .ts':
  Duration: 02:01:48.77, start: 0.100000, bitrate: 384 kb/s
  Program 1 
    Stream #0:0[0x50]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 512x288 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[aac @ 0x55c6db051fc0] Estimating duration from bitrate, this may be inaccurate
Input #1, aac, from 'temp/Razor Ramon .aac':
  Metadata:
    id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
  Duration: 01:47:30.04, bitrate: 220 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 220 kb/s
Input #2, ffmetadata, from 'temp/Razor Ramon -metafile':
  Metadata:
    title           : Razor Ramon 
  Duration: N/A, start: 0.000000, bitrate: N/A
Codec 0x21000 is not in the full list.
    Stream #2:0: Data: unknown_codec
    Metadata:
      title           : Razor Ramon 
Output #0, mp4, to 'output/WWE Razor Ramon /Razor Ramon .mp4':
  Metadata:
    id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 512x288 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 220 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=219263 fps=54572 q=-1.0 Lsize=  486899kB time=02:01:48.73 bitrate= 545.7kbits/s speed=1.82e+03x    
video:309543kB audio:173526kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.792777%
UPDATE downloads SET name = 'Razor Ramon ', quality = '542604', date = '1614835498' WHERE id = 83323
Updated database with the new video information
freyta commented 3 years ago

@cordellstoyer - Did you fix or encounter any other issues? Your episode downloads fine for me.

python main.py -t https://watch.wwe.com/episode/If-It-Tastes-Like-Sushi-7513 -c -k
Succesfully logged in
Got the video information

Starting to write the metadata file
Finished writing the metadata file

Writing chapter information
Finished writing chapter information

Starting to write the stream title
Finished writing the stream title

aac files finished downloadingf 227
ts files finished downloadingf 227

Starting to write the metadata file
Finished writing the metadata file

Writing chapter information
Finished writing chapter information

Starting to write the stream title
Finished writing the stream title

ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-shared --enable-version3
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mpegts, from 'temp/The Edge & Christian Show - S1E09 - If It Tastes Like Sushi....ts':
  Duration: 00:22:41.67, start: 0.100000, bitrate: 7886 kb/s
  Program 1 
    Stream #0:0[0x50]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[aac @ 0x55f3a2cdf880] Estimating duration from bitrate, this may be inaccurate
Input #1, aac, from 'temp/The Edge & Christian Show - S1E09 - If It Tastes Like Sushi....aac':
  Metadata:
    id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
  Duration: 00:19:53.01, bitrate: 221 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 221 kb/s
Input #2, ffmetadata, from 'temp/The Edge & Christian Show - S1E09 - If It Tastes Like Sushi...-metafile':
  Metadata:
    title           : The Edge & Christian Show - S1E09 - If It Tastes Like Sushi...
  Duration: 00:22:20.93, start: 0.000000, bitrate: 0 kb/s
    Chapter #2:0: start 1.067000, end 120.100000
    Metadata:
      title           : Edge & Christian run in to Paige
    Chapter #2:1: start 136.801000, end 237.834000
    Metadata:
      title           : E & C intro the international episode
    Chapter #2:2: start 237.834000, end 337.801000
    Metadata:
      title           : E & C do the entrances of international stars
    Chapter #2:3: start 343.300000, end 533.667000
    Metadata:
      title           : Chumpstain Challenge No. 7
    Chapter #2:4: start 534.934000, end 682.000000
    Metadata:
      title           : Lance Storm complains about the vulgarity
    Chapter #2:5: start 689.834000, end 731.300000
    Metadata:
      title           : EC Dubs: International Edition
    Chapter #2:6: start 732.601000, end 947.567000
    Metadata:
      title           : Edge & Christian interrogate Funaki
    Chapter #2:7: start 949.100000, end 1126.033000
    Metadata:
      title           : Edge & Christian interview Los Conquistadores
    Chapter #2:8: start 1127.501000, end 1252.601000
    Metadata:
      title           : Edge addresses some unfinished business
    Chapter #2:9: start 1254.000000, end 1340.934000
    Metadata:
      title           : E & C experience technical difficulties
Codec 0x21000 is not in the full list.
    Stream #2:0: Data: unknown_codec
    Metadata:
      title           : The Edge & Christian Show - S1E09 - If It Tastes Like Sushi...
Output #0, mp4, to 'output/WWE If It Tastes Like Sushi.../The Edge & Christian Show - S1E09 - If It Tastes Like Sushi....mp4':
  Metadata:
    id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
    encoder         : Lavf58.45.100
    Chapter #0:0: start 1.067000, end 120.100000
    Metadata:
      title           : Edge & Christian run in to Paige
    Chapter #0:1: start 136.801000, end 237.834000
    Metadata:
      title           : E & C intro the international episode
    Chapter #0:2: start 237.834000, end 337.801000
    Metadata:
      title           : E & C do the entrances of international stars
    Chapter #0:3: start 343.300000, end 533.667000
    Metadata:
      title           : Chumpstain Challenge No. 7
    Chapter #0:4: start 534.934000, end 682.000000
    Metadata:
      title           : Lance Storm complains about the vulgarity
    Chapter #0:5: start 689.834000, end 731.300000
    Metadata:
      title           : EC Dubs: International Edition
    Chapter #0:6: start 732.601000, end 947.567000
    Metadata:
      title           : Edge & Christian interrogate Funaki
    Chapter #0:7: start 949.100000, end 1126.033000
    Metadata:
      title           : Edge & Christian interview Los Conquistadores
    Chapter #0:8: start 1127.501000, end 1252.601000
    Metadata:
      title           : Edge addresses some unfinished business
    Chapter #0:9: start 1254.000000, end 1340.934000
    Metadata:
      title           : E & C experience technical difficulties
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=40850 fps=5915 q=-1.0 Lsize= 1311333kB time=00:22:41.60 bitrate=7889.6kbits/s speed= 197x    
video:1278193kB audio:32205kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.071415%
Inserted the video into the database

In regards to multiple downloading, I personally just use another script which calls the main program. I guess in the future I can/should add a way to add a list (text file for instance) where it iterates through them.

fttdgc commented 3 years ago

@freyta c:\Users[BLAH]\Desktop\WWE-Network-Downloader>python main.py -q 2 -t https://wat ch.wwe.com/program/Razor-Ramon--12375 Succesfully logged in Got the video information You have already downloaded this video. If you want to download this file anyway, please use --force or -f Quitting.

c:\Users[BLAH]\Desktop\WWE-Network-Downloader>python main.py -f -q 2 -t https:// watch.wwe.com/program/Razor-Ramon--12375 Succesfully logged in Got the video information aac files finished downloadingof 1219 ts files finished downloadingof 1219

Starting to write the metadata file Finished writing the metadata file

Starting to write the stream title Finished writing the stream title

ffmpeg version N-101309-g10341743d2 Copyright (c) 2000-2021 the FFmpeg developer s built with gcc 9.3-win32 (GCC) 20200320 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-conf ig=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw 32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable- pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --en able-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl - -enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enab le-cuda-llvm --disable-libglslang --enable-libass --enable-libbluray --enable-li bmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp -- disable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schanne l --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-lib twolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME _STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp libavutil 56. 66.100 / 56. 66.100 libavcodec 58.125.101 / 58.125.101 libavformat 58. 68.100 / 58. 68.100 libavdevice 58. 12.100 / 58. 12.100 libavfilter 7.107.100 / 7.107.100 libswscale 5. 8.100 / 5. 8.100 libswresample 3. 8.100 / 3. 8.100 libpostproc 55. 8.100 / 55. 8.100 Input #0, mpegts, from 'temp/Razor Ramon .ts': Duration: 02:01:48.77, start: 0.100000, bitrate: 3448 kb/s Program 1 Stream #0:0[0x50]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progre ssive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc [aac @ 000000000040df40] Estimating duration from bitrate, this may be inaccurat e Input #1, aac, from 'temp/Razor Ramon .aac': Metadata: id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x0 0\x00\x1b\xa8 Duration: 24:18:58.21, bitrate: 16 kb/s Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 16 kb/s Input #2, ffmetadata, from 'temp/Razor Ramon -metafile': Metadata: title : Razor Ramon Duration: N/A, start: 0.000000, bitrate: N/A Codec 0x21000 is not in the full list. Stream #2:0: Data: unknown_codec Metadata: title : Razor Ramon output/WWE Razor Ramon /Razor Ramon .mp4: No such file or directory UPDATE downloads SET name = 'Razor Ramon ', quality = '4282606', date = '1614837 121' WHERE id = 83323 Updated database with the new video information

c:\Users[BLAH]\Desktop\WWE-Network-Downloader>

fttdgc commented 3 years ago

@cordellstoyer @freyta To queue up multiple downloads I've just created a .bat file with a url on each line and run that.

python main.py -t URL1 python main.py -t URL2 python main.py -t URL3 etc.

Worked great

freyta commented 3 years ago

Ah yes, I think I know what the problem is.

Windows is having trouble finding the folder because the folders name is "Razor Ramon " with a space at the end, and Windows doesn't know what to do. I'll hopefully by next week push a fix up. It should be a very simple fix, just need the time to do it.

The same problem is with the E+C show in the initial issue, it's title is "If It Tastes Like Sushi..."

ghost commented 2 years ago

adding a strip to clean_text should resolve this issue