Git Product home page Git Product logo

wwe-network-downloader's People

Contributors

dependabot[bot] avatar freyta avatar throwawayay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wwe-network-downloader's Issues

Error when downloading

Hi there,

I was able to download one video, but now I keep getting errors when trying others. I do have a current paid subscription through my cable provider. Any suggestions?

Succesfully logged in
Your subscription is invalid. Quitting.
Traceback (most recent call last):
File "/home/chris/WWE-Network-Downloader-master/wwe.py", line 124, in _video_url
exit()
File "/usr/lib/python3.10/_sitebuiltins.py", line 26, in call
raise SystemExit(code)
SystemExit: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/chris/WWE-Network-Downloader-master/main.py", line 113, in
video_link = account.get_video_info(EPISODE)
File "/home/chris/WWE-Network-Downloader-master/wwe.py", line 213, in get_video_info
video_url_resp = self._video_url(api_link['entries'][0]['item']['customFields']['DiceVideoId'])
File "/home/chris/WWE-Network-Downloader-master/wwe.py", line 126, in _video_url
return video_url['playerUrlCallback'], video_url['videoId']
KeyError: 'playerUrlCallback'

Series without info

Dear

Some downloads fail with the following message:
C:\tmp\WWE-Network-Downloader-master>python main.py -t https://watch.wwe.com/episode/WWE-NXT-9393
Succesfully logged in
Got the video information
aac files finished downloadingf 472
ts files finished downloadingf 472

Starting to wrtie the metadata file
Finished writing the metadata title

Writing stream title
Finished writing stream title

Traceback (most recent call last):
File "main.py", line 171, in
series_info = kodi_nfo.get_show_info(EPISODE)
File "C:\tmp\WWE-Network-Downloader-master\kodi_nfo.py", line 186, in get_show_info
i = show_json['entries'][0]['item']
KeyError: 'item'

Error Downloading

I am getting the below error. I logged into my account on the WWE network and played the PPV fine. Not sure why it's saying your subscription is invalid. Is anyone else getting this issue?

Succesfully logged in
Your subscription is invalid. Quitting.
Traceback (most recent call last):
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\wwe.py", line 124, in _video_url
exit()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib_sitebuiltins.py", line 26, in call
raise SystemExit(code)
SystemExit: None

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\main.py", line 113, in
video_link = account.get_video_info(EPISODE)
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\wwe.py", line 213, in get_video_info
video_url_resp = self._video_url(api_link['entries'][0]['item']['customFields']['DiceVideoId'])
File "J:\Media\T.V Shows\WWE Raw\Season 8\Download\wwe.py", line 126, in _video_url
return video_url['playerUrlCallback'], video_url['videoId']
KeyError: 'playerUrlCallback'

SyntaxWarning in wwe.py

Hello, I am getting the following error:

Downloads\wwe.py:10: SyntaxWarning: invalid escape sequence '\d' time_matches = re.match("\\b(\d{2}):\\b(\d{2}):\\b(\d{2})", time)

I have python 3.12.3 and am using the default files downloaded from github. Any Idea what this is and how to fix it?

KeyError: 'playerUrlCallback'

Hey Freyta, I'm getting this error when trying to download a link:

py main.py -t https://network.wwe.com/video/74194?seasonId=15625
Succesfully logged in
Traceback (most recent call last):
  File "C:\ffmpeg\main.py", line 95, in <module>
    video_link = account.get_video_info(EPISODE)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ffmpeg\wwe.py", line 181, in get_video_info
    stream_url = api_link['playerUrlCallback']
                 ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'playerUrlCallback'

I still have WWE Network access in Germany and can watch it on the browser, but can't seem to download. Any idea what I can do to resolve?

How to Login

I have a wwe network account but the prohram just spits out enter a username and or password. but with no way to enter this, any help?

Incomplete Input

I've not used this for a while, i've updated to the latest version, and the latest ffmpeg but I get an incomplete input error.

it successfully exports the first 6 seconds, but that is all. It only ever shows 1 ts during the output.

Full output below - anybody have any understanding?

python3 main.py -q 4 -t https://network.wwe.com/video/83297 -f
Succesfully logged in
Got the video information
aac files finished downloading0
ts files finished downloading

Starting to write the metadata file

Starting to write the stream title
Finished writing the stream title

Finished writing the metadata file
ffmpeg version N-99360-g2f9a3215aa-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil      56. 59.100 / 56. 59.100
  libavcodec     58.107.100 / 58.107.100
  libavformat    58. 59.100 / 58. 59.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 87.100 /  7. 87.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/The Undertaker.ts':
  Duration: 00:00:06.00, start: 0.100000, bitrate: 1017 kb/s
  Program 1 
    Stream #0:0[0x50]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 896x504 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
[aac @ 0x7f81fd031000] Estimating duration from bitrate, this may be inaccurate
Input #1, aac, from 'temp/The Undertaker.aac':
  Metadata:
    id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
  Duration: 00:00:05.92, bitrate: 5 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 5 kb/s
Input #2, ffmetadata, from 'temp/The Undertaker-metafile':
  Metadata:
    title           : The Undertaker
  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           : The Undertaker
Output #0, mp4, to 'output/The Undertaker/The Undertaker.mp4':
  Metadata:
    id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x00\x00\x1b\xa8
    encoder         : Lavf58.59.100
    Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 896x504 [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, 5 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  180 fps=0.0 q=-1.0 Lsize=     717kB time=00:00:06.01 bitrate= 975.9kbits/s speed=1.02e+03x    
video:708kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.762884%
Traceback (most recent call last):
  File "main.py", line 224, in <module>
    database.db_upd(video_link[2], video_link[1], str(video_selections[0][0]), partial_download, int(time.time()))
  File "/Applications/WWE-Network-Downloader-2/db_util.py", line 39, in db_upd
    self.c.execute(f"UPDATE downloads SET name = '{video_name}', quality = '{video_qual}', partial_download = '{partial}', date = '{timestamp}' WHERE id = {video_id}")
sqlite3.OperationalError: incomplete input

IndexError: list index out of range - audio selection problem

I still have access to the international version of the network and am getting this error on the new Mania uploads.

C:\Users[ACCOUNT]\Desktop\WWENetDown>py main.py -t https://watch.wwe.com/episode/WrestleMania-37-Night-1-161945
Succesfully logged in
Got the video information
Traceback (most recent call last):
File "main.py", line 143, in
audio_qualities.append((int(i.group_id.split('audio-')[1]), base_url[0]+"/"+
i.uri))
IndexError: list index out of range

Classic links still work fine. Any suggestions?

Include Subtitles

A good amount of videos have subtitles, if you were interested in adding them in:

Sample code:

def get_subtitle(self, stream_link, episode_title):
    print("\nStarting to write subtitle")
    stream = self._session.get(stream_link, headers=CONSTANTS.REALM_HEADERS).json()

    if 'subtitles' in stream:
        for subtitle in stream['subtitles']:
            if subtitle.get('format') == 'srt':
                subtitle_url = subtitle['url']
        r = requests.get(subtitle_url, allow_redirects=True)
        open("{}/{}.srt".format(CONSTANTS.OUTPUT_FOLDER, episode_title), "wb").write(r.content)
    print("Finished writing subtitle")

and add to the ffmpeg command: -i input.srt -c copy -c:s mov_text

(Or you could switch to MKV, but that would require reformatting the chapter-ized output)

GUI please...

Is there any chance there will be a GUI for this? Because now it's absolutely not zoomer friendly app. I still haven't figured out how to use it. I installed python, and added all the files from this repository to the python folder, but nothing happens. In general, it would be great to have the simplest GUI, just a line for a link, download button, and a list of parameters with a tick box for each of them.

NoneType is not subscriptable

Hi Freyta,

i'm trying to download all episodes of WWE 24 documentary series. It worked for almost all episodes, only one is not working:

Succesfully logged in
Traceback (most recent call last):
File "/media/wilhelde/Daten/WWE24/main.py", line 102, in
stream_url = account.m3u8_stream(video_link[1])
File "/media/wilhelde/Daten/WWE24/wwe.py", line 96, in m3u8_stream
return stream['hls'][0]['url'], subtitle_stream, stream['annotations']['titles']
TypeError: 'NoneType' object is not subscriptable

It's this episode: https://network.wwe.com/video/85591
and all downloads were started with this command:
python3 main.py -f -s -t

i tried python3 main.py -t https://network.wwe.com/video/85591 without success, I tried the master fork, patch-1 and patch-2, Linux and Windows as Host.

can someone tell me, what's going wrong?

Error when using main.py

Trying to figure out how to get this working and I am greeted with this error.

python3 main.py -t https://watch.wwe.com/episode/Raw-7157 Traceback (most recent call last): File "main.py", line 1, in <module> import wwe File "/home/owner/Documents/git/WWE-Network-Downloader/wwe.py", line 6, in <module> import arrow, datetime ModuleNotFoundError: No module named 'arrow'

Program crashes mid-download | PermissionError: [Errno 13] Permission denied?

Started getting this couple days ago and don't know if it's a Network error, my Python's error, or something else. The last few days when running the program, it'll often start out fine and then randomly stop the download with the crash error below.

The crash itself is completely random. Sometimes it wont happen at all, but, others it will happen with every file, typically during the ts file download since that's the longest part. When it crashes the timing is completely random too, some ts files may download 10 parts, others 200, 500, etc.

`C:\Users[XXX]\Desktop\WWE-Network-Downloader>py main.py -q 2 -t https://watch.w
we.com/episode/SmackDown-4670
Succesfully logged in
Got the video information
aac files finished downloading
596 ts files downloaded out of 840Traceback (most recent call last):
File "main.py", line 192, in
download.download_playlist(**kwargs)
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 11
8, in download_playlist
self.write_data(download_data.data, "{}.{}".format(title, format))
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 33
, in write_data
f = open(location,"ab+")
PermissionError: [Errno 13] Permission denied: 'C:\Users\[XXX]\Desktop\WWE-N
etwork-Downloader/inprocess/WWE SmackDown - S2002E45 - 11-07-2002.ts'

C:\Users[XXX]\Desktop\WWE-Network-Downloader>py main.py -q 2 -t https://watch.w
we.com/episode/SmackDown-4685
Succesfully logged in
Got the video information
aac files finished downloading
134 ts files downloaded out of 818Traceback (most recent call last):
File "main.py", line 192, in
download.download_playlist(**kwargs)
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 11
8, in download_playlist
self.write_data(download_data.data, "{}.{}".format(title, format))
File "C:\Users[XXX]\Desktop\WWE-Network-Downloader\download_util.py", line 33
, in write_data
f = open(location,"ab+")
PermissionError: [Errno 13] Permission denied: 'C:\Users\[XXX]\Desktop\WWE-N
etwork-Downloader/inprocess/WWE SmackDown - S2002E46 - 11-14-2002.ts'

C:\Users[XXX]\Desktop\WWE-Network-Downloader>py main.py -q 2 -t https://watch.w
we.com/episode/SmackDown-4619
Succesfully logged in
Got the video information
aac files finished downloading
416 ts files downloaded out of 840`

Error while logging in. Possibly invalid username/password

I am getting this error: Error while logging in. Possibly invalid username/password

However I checked and double checked. My details are correct. What have I done wrong?

got this error

root@instance-1:/test/WWE-Network-Downloader# python3 main.py -t https://watch.wwe.com/episode/SmackDown-130268 Traceback (most recent call last): File "main.py", line 110, in <module> account.login() File "/test/WWE-Network-Downloader/wwe.py", line 45, in login token_data = self._session.post('https://dce-frontoffice.imggaming.com/api/v2/login', json=payload, headers=CONSTANTS.REALM_HEADERS).json() File "/root/.local/lib/python3.6/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Subtitles not displayed

Videos with subtitles, but the subtitles not displayed, just emptiness. And it seems that something happens here in cmd. Can anyone tell me what to do about it?

image
Pay attention to the penultimate line
subtitle:0kB

username and password

im trying this on google colab but i can't figure out where to put username and password?

Can get the downloader to work on macOS

Hi I've been trying and trying with the command python3 main.py -t and then the link and I can't get nothing... I would like to know how to exactly use the downlaoder pls if anyone could make a video working and successfully downloading something.. id like to get some videos with specific times now that I get a subscription active. So wonder if anyone could help with some snapshots of the process or any video it would be really appreciated it --Thx

Cannot download PPV Kickoff show because of error with "episodeName"

Cannot download any of the WWE Kickoff Shows due to an error with the "episodeName" variable. Not sure if the script can't pull the episode name or if this is an issue because these videos are not a part of a series. I can download all other content from the network just fine.

python3 main.py -t "https://watch.wwe.com/program/Money-in-the-Bank-2022-Kickoff-182464" Succesfully logged in Traceback (most recent call last): File "main.py", line 113, in <module> video_link = account.get_video_info(EPISODE) File "/home/ubuntu/Downloads/WWE-Network-Downloader/wwe.py", line 192, in get_video_info ppv_title = entry["episodeName"] KeyError: 'episodeName'

No such file or directory

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?

IndentationError: unindent does not match any outer indentation level

Hi all,

Wondering where I am going wrong?

Cheers

Trev

C:\Users\trevo\Desktop\WWE-Network-Downloader-master>python3 main.py -t https://watch.wwe.com/episode/SmackDown-130268
C:\Users\trevo\Desktop\WWE-Network-Downloader-master\wwe.py:10: SyntaxWarning: invalid escape sequence '\d'
time_matches = re.match("\b(\d{2}):\b(\d{2}):\b(\d{2})", time)
Traceback (most recent call last):
File "C:\Users\trevo\Desktop\WWE-Network-Downloader-master\main.py", line 3, in
import wwe
File "C:\Users\trevo\Desktop\WWE-Network-Downloader-master\wwe.py", line 145
for i in chapters:
^
IndentationError: unindent does not match any outer indentation level

C:\Users\trevo\Desktop\WWE-Network-Downloader-master>

Detect if ffmpeg is installed

Can you detect if ffmpeg is installed before downloaded all the files. I waited for around 20 minutes and finally got this:

/bin/sh: ffmpeg: command not found.

Please any tutorial video

I don't know anything about programming or Python
any one have a tutorial video i want to install some of raw episodes

Name of the catalog is invalid

Hello

My downloads fail with the following message
c:\temp\WWE-Network-Downloader-master>python main.py -q 3 -t https://watch.wwe.c
om/program/CM-Punk-Best-in-the-World-12316
Succesfully logged in
Got the video information
aac files finished downloading
ts files finished downloading

Starting to wrtie the metadata file
Finished writing the metadata title

Writing stream title
Finished writing stream title

Traceback (most recent call last):
File "main.py", line 175, in
os.makedirs(CONSTANTS.OUTPUT_FOLDER + "/" + series_info[0])
File "C:\Users\crafciak31\AppData\Local\Programs\Python\Python38\lib\os.py", l
ine 223, in makedirs
mkdir(name, mode)
NotADirectoryError: [WinError 267] Nazwa katalogu jest nieprawidłowa (the name of the catalog is invalid): 'output/WWE CM Punk: Best in the World'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.