sverrirs / ruvsarpur

Python script to download shows off the Icelandic RÚV website.

Home Page:https://sverrirs.github.io/ruvsarpur/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to refresh the list

kjanaprik opened this issue · comments

Ég er að fá eftirfarandi villu þegar ég reyni að uppfæra listann. Þetta virkaði fyrir nokkrum dögum síðan hjá mér.

python ruvsarpur.py --list --refresh

The '--imdbfolder' argument is not set, this will impact IMDB matching for non-english content, consider setting this parameter and downloading the 'title.basics.tsv' file from https://www.imdb.com/interfaces/
python : Traceback (most recent call last):
At line:1 char:1

  • python ruvsarpur.py --list --refresh
  •   + CategoryInfo          : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
      return complexjson.loads(self.text, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\__init__.py", line 514, in loads
      return _default_decoder.decode(s)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\decoder.py", line 386, in decode
      obj, end = self.raw_decode(s)
                 ^^^^^^^^^^^^^^^^^^
    File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\simplejson\decoder.py", line 416, in raw_decode
      return self.scan_once(s, idx=_w(s, idx).end())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    

simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User\Videos\Sarpurinn\ruvsarpur-12.1.0\src\ruvsarpur.py", line 1545, in
runMain()
File "C:\Users\User\Videos\Sarpurinn\ruvsarpur-12.1.0\src\ruvsarpur.py", line 1349, in runMain
schedule = getVodSchedule(schedule, len(schedule) > 0, imdb_cache, imdb_orignal_titles)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\Videos\Sarpurinn\ruvsarpur-12.1.0\src\ruvsarpur.py", line 914, in getVodSchedule
data = r.json()
^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sama hér Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/simplejson/init.py", line 514, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/simplejson/decoder.py", line 386, in decode
obj, end = self.raw_decode(s)
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/simplejson/decoder.py", line 416, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/fj/DEV/projects/ruvsarpur/src/ruvsarpur.py", line 1545, in
runMain()
File "/Users/fj/DEV/projects/ruvsarpur/src/ruvsarpur.py", line 1349, in runMain
schedule = getVodSchedule(schedule, len(schedule) > 0, imdb_cache, imdb_orignal_titles)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/fj/DEV/projects/ruvsarpur/src/ruvsarpur.py", line 914, in getVodSchedule
data = r.json()
^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

RÚV henti út API endapunktunum sem ég var að nota, verð að útfæra quick and dirty fix