- Fixed some errors (?) in latest source code
- Maybe not all or none of these "errors" are really errors. It's always possible I just didn't get what was intended.
- Added -l/--language flag for downloading different audio languages
- Added Shell-script for easier usage
Follow the Prerequisites first.
sudo chmod +x /path/to/project/wwe-dl.sh
sudo ln -s /path/to/project/wwe-dl.sh /usr/local/bin/wwedl
// downloading english audio by default
wwedl https://network.wwe.com/video/xxxxx
// downloading a different language (e.g. german)
wwedl https://network.wwe.com/video/xxxxx deu
The video file is downloaded to the directory from within the script is executed. Temp files and SQLite-database will be placed in project-directory. If the selected language is not found it will download english as default.
By default the script forces the video to download (-f) and adds milestone chapters (-c). It also adds a default start (-st) and endtime (-et) to always download the whole video. You can change this behavior by editing wwe-dl.sh
in the projects root according to your personal needs. You can find the Options for the script further down this file.
Full credit for the original Python script goes to freyta with his version of the WWE-Network-Downloader. Thank you for the great work you have done there!
Freyta's WWE Network 2.0 Downloader using Python3. This was coded by me from scratch, ideas were taken from youtube-dl.
Features include the following:
- Downloading from set start times
- Ending at certain times (i.e. only downloading certain matches)
- Qualtiy selection (1 being 1080p, 6 being 288p)
- Kodi NFO file creations (TV episode and Series only at the moment - PPV needs to be added)
- Part downloading of files.
You must have at least version 4.2 ffmpeg installed and in your PATH. You also need Python3 installed on your system.
pip3 install --user -r requirements.txt
You may need to break the system packages if you encounter an error. Do at you own risk!
pip3 install --user -r requirements.txt --break-system-packages
2. Edit the username and password variables in CONSTANTS.py to include your subscription email and password
...
# USERNAME AND PASSWORD
USERNAME = "YOUR_EMAIL_ADDRESS"
PASSWORD = "YOUR_PASSWORD"
...
Follow the Instructions from here on if you want to use the Shell-script.
python3 main.py -t https://watch.wwe.com/episode/SmackDown-130268
python3 main.py -st 1619.934 -et 1712.834 -of 'Tucker confronts Mandy Rose Smackdown 02-21-2020' -t https://watch.wwe.com/episode/SmackDown-130268
python3 main.py -c -q 3 -s -e -t https://watch.wwe.com/episode/Bret-Hart-132278
-t/--title - Link to the video you want to download.
-q/--quality - Quality of the video you want to download. 1 is 1080p high (default) 6 being 288p (lowest).
-c/--chapter - Add milestone chapters to the video. Not available for all videos.
-s/--subtitles - Downloads the subtitles.
-k/--keep_files - Keep temporary aac and ts files.
-e - Write a Kodi episode NFO file.*
-s - Write a Kodi series NFO file with poster and fanart.*
-st/--start_time - Start time in seconds from where you want to start downloading.
-et/--end_time - End time in seconds from where you want to finish downloading.
-f/--force - Force the download of the video. Overwrites previously downloaded files.
-of/--output_filename - Specify a custom filename for the output.
-l/--language - Audio language of the video. Defaults to "eng" (english).
* Hint by Homer3k: There is no handling for these options in the source code so I guess this was not implemented yet.