Comments (4)
I'm getting the same error on linux debian 11 with python 3.9.2
2022-04-25 20:38:53,944 - WARNING - livestream_saver.cookies - <Cookie PREF=f6=80&tz=UTC&hl=en for .youtube.com/> is expired (0)! Might want to renew it.
2022-04-25 20:38:53,944 - WARNING - livestream_saver.cookies - <Cookie YSC=NuQ9JEPV2xs for .youtube.com/> is expired (0)! Might want to renew it.
2022-04-25 20:38:55,260 - INFO - livestream_saver - Monitoring channel: CONQUESTCOMICS
2022-04-25 20:38:55,494 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 274087 (char 274086)
2022-04-25 20:38:55,495 - CRITICAL - livestream_saver.monitor - Got an invalid upcoming JSON: Extra data: line 1 column 274087 (char 274086)
2022-04-25 20:38:55,495 - INFO - livestream_saver.monitor - Currently listed public upcoming videos: 0
2022-04-25 20:38:55,614 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 59122 (char 59121)
2022-04-25 20:38:55,614 - CRITICAL - livestream_saver.monitor - Got an invalid community JSON: Extra data: line 1 column 59122 (char 59121)
2022-04-25 20:38:55,615 - INFO - livestream_saver.monitor - Currently listed community videos: 0
2022-04-25 20:38:55,785 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 274087 (char 274086)
2022-04-25 20:38:55,786 - CRITICAL - livestream_saver.monitor - Got an invalid public JSON: Extra data: line 1 column 274087 (char 274086)
2022-04-25 20:38:55,787 - INFO - livestream_saver.monitor - Currently listed public videos: 0
2022-04-25 20:38:55,789 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 274087 (char 274086)
2022-04-25 20:38:55,790 - ERROR - livestream_saver - Extra data: line 1 column 274087 (char 274086)
Traceback (most recent call last):
File "/home/abrowncbr/apps/livestream_saver/livestream_saver.py", line 486, in monitor_mode
f"\"{ch.get_channel_name()}\": "
File "/home/abrowncbr/apps/livestream_saver/livestream_saver/monitor.py", line 45, in get_channel_name
_json = self.public_json
File "/home/abrowncbr/apps/livestream_saver/livestream_saver/monitor.py", line 98, in public_json
self._public_json = extract.str_as_json(
File "/home/abrowncbr/apps/livestream_saver/livestream_saver/extract.py", line 83, in str_as_json
j = loads(string)
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 274087 (char 274086)
2022-04-25 20:38:55,824 - INFO - livestream_saver.monitor - Sleeping for 4.13 minutes (247.73 seconds)...
from livestream_saver.
same on Windows 11 1903, Python 3.9.12
2022-04-25 22:50:35,277 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 218926 (char 218925)
2022-04-25 22:50:35,324 - CRITICAL - livestream_saver.monitor - Got an invalid upcoming JSON: Extra data: line 1 column 218926 (char 218925)
2022-04-25 22:50:35,324 - INFO - livestream_saver.monitor - Currently listed public upcoming videos: 0
2022-04-25 22:50:35,590 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 163904 (char 163903)
2022-04-25 22:50:35,637 - CRITICAL - livestream_saver.monitor - Got an invalid community JSON: Extra data: line 1 column 163904 (char 163903)
2022-04-25 22:50:35,637 - INFO - livestream_saver.monitor - Currently listed community videos: 0
2022-04-25 22:50:35,918 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 218926 (char 218925)
2022-04-25 22:50:36,246 - CRITICAL - livestream_saver.monitor - Got an invalid public JSON: Extra data: line 1 column 218926 (char 218925)
2022-04-25 22:50:36,262 - INFO - livestream_saver.monitor - Currently listed public videos: 0
2022-04-25 22:50:36,293 - CRITICAL - livestream_saver.extract - Error loading JSON from string: Extra data: line 1 column 218926 (char 218925)
2022-04-25 22:50:36,324 - ERROR - livestream_saver - Extra data: line 1 column 218926 (char 218925)
Traceback (most recent call last):
File "b:\Apps\livestream_saver\livestream_saver.py", line 486, in monitor_mode
f""{ch.get_channel_name()}": "
File "b:\Apps\livestream_saver\livestream_saver\monitor.py", line 45, in get_channel_name
_json = self.public_json
File "b:\Apps\livestream_saver\livestream_saver\monitor.py", line 98, in public_json
self.public_json = extract.str_as_json(
File "b:\Apps\livestream_saver\livestream_saver\extract.py", line 83, in str_as_json
j = loads(string)
File "c:\Users\User\AppData\Local\Programs\Python\Python39\lib\json_init.py", line 346, in loads
return _default_decoder.decode(s)
File "c:\Users\User\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 218926 (char 218925)
from livestream_saver.
Perfect, I confirmed the commit fixed it. I'm closing the issue.
from livestream_saver.
Thanks for reporting. This should be fixed by ee2a9fe.
from livestream_saver.
Related Issues (20)
- ffmpeg takes forever to read the concatenated ts HOT 4
- livestream_saver does not handle age-restricted videos correctly HOT 14
- New Youtube UI update, Livestreams moved to new tab HOT 3
- Missing Videos tab endpoint data for Livestream VODS HOT 2
- Cannot monitor or download (public videos = 0) HOT 1
- Streams no longer using Videos/Community tab to list live stream. HOT 2
- having trouble downloading streaming video. HTTP Error 404: Not Found HOT 2
- Unable to start livestream_saver on Ubuntu HOT 9
- Support monitoring multiple channels in one instance of the script HOT 4
- Could not find ffmpeg or ffprobe. HOT 1
- Unhandled exception: Missing streamingData key in json causing downloads to be interrupted HOT 4
- Exception while accessing title of video (possibly a pytube issue) HOT 1
- I think the latest change broke something HOT 2
- "The following content is not available on this app." errors HOT 8
- Help getting yt-dlp to spawn on events? HOT 4
- Cookie HOT 2
- Outdated client error. Retrying shortly... HOT 1
- SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] HOT 2
- How to install? HOT 4
- No module named 'yt_dlp' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livestream_saver.