HoloArchivists/twspace-dl

Unhandled exception in script

ccrowles opened this issue · 0 comments

Describe the bug
It's not working with an ongoing twitter space.

To Reproduce
Open the GUI. Select Space Url in Input, add the twitter space link. Write format string in output as follows: %(creator_screen_name)s [%(creator_name)s] - %(title)s|%(start_date)s. Click start.

Expected behavior
It starts recording.

Output
If applicable, add the output of the command to help explain your problem.

2023-01-11 03:48:25,330 [DEBUG] https://api.twitter.com:443 "POST /1.1/guest/activate.json HTTP/1.1" 200 63
2023-01-11 03:48:25,333 [DEBUG] Starting new HTTPS connection (1): twitter.com:443
2023-01-11 03:48:25,865 [DEBUG] https://twitter.com:443 "GET /i/api/graphql/jyQ0_DEMZHeoluCgHJ-U5Q/AudioSpaceById?variables=%7B%22id%22%3A%221LyxBqbyYLYJN%22%2C%22isMetatagsQuery%22%3Afalse%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withUserResults%22%3Atrue%2C%22withBirdwatchPivots%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withReplays%22%3Atrue%2C%22withScheduledSpaces%22%3Atrue%7D HTTP/1.1" 200 69269
2023-01-11 03:48:25,962 [DEBUG] Media Key: 28_1612994894590509057
2023-01-11 03:48:25,963 [DEBUG] Starting new HTTPS connection (1): cdn.syndication.twimg.com:443
2023-01-11 03:48:26,100 [DEBUG] https://cdn.syndication.twimg.com:443 "GET /widgets/followbutton/info.json?screen_names=gavisbettel HTTP/1.1" 200 190
2023-01-11 03:48:26,110 [DEBUG] Starting new HTTPS connection (1): twitter.com:443
2023-01-11 03:48:26,643 [DEBUG] https://twitter.com:443 "GET /i/api/1.1/live_video_stream/status/28_1612994894590509057 HTTP/1.1" 200 1497
2023-01-11 03:48:26,646 [DEBUG] Starting new HTTPS connection (1): prod-fastly-us-east-1.video.pscp.tv:443
2023-01-11 03:48:26,857 [DEBUG] https://prod-fastly-us-east-1.video.pscp.tv:443 "GET /Transcoding/v1/hls/kmZXnCcMZwgRPX5Q1WP30zbpvlhV8E2KKYeAw5FzD4Yll25QHrqt7zX1wGx_UMWkJWC_URCZ_1Vaf_U5xcXCwg/non_transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/audio-space/master_playlist.m3u8 HTTP/1.1" 200 544
2023-01-11 03:48:26,862 [DEBUG] Encoding detection: ascii is most likely the one.
2023-01-11 03:48:26,863 [DEBUG] Starting new HTTPS connection (1): prod-fastly-us-east-1.video.pscp.tv:443
2023-01-11 03:48:27,094 [DEBUG] https://prod-fastly-us-east-1.video.pscp.tv:443 "GET /Transcoding/v1/hls/kmZXnCcMZwgRPX5Q1WP30zbpvlhV8E2KKYeAw5FzD4Yll25QHrqt7zX1wGx_UMWkJWC_URCZ_1Vaf_U5xcXCwg/transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsInZlcnNpb24iOiIyIn0.eyJIZWlnaHQiOjgsIkticHMiOjM1MCwiVHJhbnNjb2RlQXVkaW8iOnRydWUsIldpZHRoIjo4fQ.j9A1sJbguxIY34C17U6iN7yTx8JM_ZNYJhfxaSmwGKQ/audio-space/playlist_16773338770603409492.m3u8 HTTP/1.1" 200 None
2023-01-11 03:48:27,114 [DEBUG] Encoding detection: ascii is most likely the one.

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 2022.6.6.0
  • Installation method: exe

Additional context
Screenshot_2023-01-11_03-43-35_574

  File "twspace_dl\twspace_dl.py", line 166, in download
  File "subprocess.py", line 528, in run
subprocess.CalledProcessError: Command '['ffmpeg', '-y', '-progress', '-', '-nostats', '-v', 'https://prod-fastly-us-east-1.video.pscp.tv/Transcoding/v1/hls/kmZXnCcMZwgRPX5Q1WP30zbpvlhV8E2KKYeAw5FzD4Yll25QHrqt7zX1wGx_UMWkJWC_URCZ_1Vaf_U5xcXCwg/non_transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/audio-space/dynamic_playlist.m3u8?type=live', 'warning', '-i', '-c', 'copy', '-metadata', 'title=It happened again …', '-metadata', 'artist=Gavis Bettel🎩@holoTEMPUS', '-metadata', 'episode_id=1LyxBqbyYLYJN', '.\\tmp56mrrk6v\\gavisbettel [Gavis Bettel🎩@holoTEMPUS] - It happened again …_2023-01-11_new.m4a']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "twspace_dl\__main__.py", line 257, in <module>
  File "gooey\python_bindings\gooey_decorator.py", line 134, in <lambda>
  File "twspace_dl\__main__.py", line 252, in main
  File "twspace_dl\__main__.py", line 125, in space
  File "twspace_dl\twspace_dl.py", line 170, in download
RuntimeError: ffmpeg -y -progress - -nostats -v https://prod-fastly-us-east-1.video.pscp.tv/Transcoding/v1/hls/kmZXnCcMZwgRPX5Q1WP30zbpvlhV8E2KKYeAw5FzD4Yll25QHrqt7zX1wGx_UMWkJWC_URCZ_1Vaf_U5xcXCwg/non_transcode/us-east-1/periscope-replay-direct-prod-us-east-1-public/audio-space/dynamic_playlist.m3u8?type=live warning -i -c copy -metadata title=It happened again … -metadata artist=Gavis Bettel🎩@holoTEMPUS -metadata episode_id=1LyxBqbyYLYJN .\tmp56mrrk6v\gavisbettel [Gavis Bettel🎩@holoTEMPUS] - It happened again …_2023-01-11_new.m4a