Git Product home page Git Product logo

Comments (4)

jsinghjr2 avatar jsinghjr2 commented on July 19, 2024 1

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.

Benderz avatar Benderz commented on July 19, 2024 1

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.

n-dv avatar n-dv commented on July 19, 2024 1

Perfect, I confirmed the commit fixed it. I'm closing the issue.

from livestream_saver.

glubsy avatar glubsy commented on July 19, 2024

Thanks for reporting. This should be fixed by ee2a9fe.

from livestream_saver.

Related Issues (20)

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.