HoloArchivists / fc2-live-dl

Tool to download FC2 live streams

Home Page:https://pypi.org/project/fc2-live-dl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Downloads wont start

leonmcfly opened this issue · comments

Task exception was never retrieved
future: <Task finished name='Task-162' coro=<AutoFC2.handle_channel() done, defined at C:\Users\leonm\AppData\Local\Programs\Python\Python311\Lib\site-packages\fc2_live_dl\autofc2.py:116> exception=<InvalidURL >>
Traceback (most recent call last):
  File "C:\Users\leonm\AppData\Local\Programs\Python\Python311\Lib\site-packages\fc2_live_dl\autofc2.py", line 119, in handle_channel
    await fc2.download(channel_id)
  File "C:\Users\leonm\AppData\Local\Programs\Python\Python311\Lib\site-packages\fc2_live_dl\FC2LiveDL.py", line 175, in download
    async with self._session.get(thumb_url) as resp:
  File "C:\Users\leonm\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\client.py", line 1141, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "C:\Users\leonm\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\client.py", line 508, in _request
    req = self._request_class(
          ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leonm\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\client_reqrep.py", line 305, in __init__
    self.update_host(url)
  File "C:\Users\leonm\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\client_reqrep.py", line 364, in update_host
    raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL

after starting the command autofc2 --config autofc2.json and a stream is found it will just loop through this and wont start anything.
Python version: 3.11
fc2-live-dl version: 2.2.0

The URL did work the last time just today it wont work

Hi, can you post your autofc2.json file?

{
    "autofc2": {
      "log_level": "info"
    },
    "default_params": {
      "quality": "2Mbps",
      "latency": "mid",
      "threads": 4,
      "outtmpl": "%(channel_name)s %(_en_name)s/%(date)s %(title)s.%(ext)s",
      "write_chat": false,
      "write_info_json": false,
      "write_thumbnail": true,
      "wait_for_live": true,
      "wait_for_quality_timeout": 15,
      "wait_poll_interval": 15,
      "cookies_file": null,
      "remux": true,
      "keep_intermediates": false,
      "extract_audio": true,
      "trust_env_proxy": false
    },
    "channels": {
      "91544481": {"_en_name": "Necoma Karin"},
      "38231874": {"_en_name": "Amino Pikon" },
      "40740626": {"_en_name": "Komae Nadeshiko"},
      "81840800": {"_en_name": "Ronomiya Hinagiku"},
      "73504568": {"_en_name": "Riasakyu Hina"},
      "91741850": {"_en_name": "Seimu Ena"},
      "55316904": {"_en_name": "Green Rabbit Mion"},
      "84683124": {"_en_name": "Mia Owred"},
      "37030653": {"_en_name": "Kefilia Neal"},
      "27947809": {"_en_name": "Luna Neige"},
      "27102454": {"_en_name": "Shisuta"},
      "41958478": {"_en_name": "Tenka Dolce"},
      "30752996": {"_en_name": "Skb Milk"},
      "11243104": {"_en_name": "Manon Mikami"},
      "95624707": {"_en_name": "Tsukasa Futatama"},
      "44096294": {"_en_name": "Purple (Murasaki)"},
      "77366506": {"_en_name": "Zaimei violets"},
      "8770876": {"_en_name": "Chii Hoshimori"},
      "49668004": {"_en_name": "Blue Rose"},
      "21674408": {"_en_name": "Urina Kisaragi"},
      "78516049": {"_en_name": "Karin"},
      "25466793": {"_en_name": "Kagura Mai"},
      "70097816": {"_en_name": "Asase Yugi"},
      "52701457": {"_en_name": "MiMi"},
      "72364867": {"_en_name": "Uno Sakura"},
      "47820373": {"_en_name": "Ryuzen Nikomi"}
    }
  }

didnt had any problems with it so far

is it possible that the error happens because it tries to get the .png but there is no png and so it fails?

Seems to be an issue downloading thumbnails, you can disable it for now while I work on a fix. Set write_thumbnail to false

ok thx now it works again