[GH-ISSUE #415] Снова здарова. Опять LostFilm не обновляется. #326

Open
opened 2026-10-13 19:55:44 +00:00 by bsakaguchi · 18 comments
Owner

Originally created by @Grosses84 on GitHub (Nov 1, 2025).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/415

Собственно такой лог, возможно проблема только у меня.

FAILED
Exception while execute topic
Traceback (most recent call last):
File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 845, in execute
episodes = self._prepare_request(topic)
File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 922, in _prepare_request
download_infos = self.tracker.get_download_info(topic.url, topic.cat, episode.season, episode.number)
File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 624, in get_download_info
download_page = session.get(download_page_url, headers=self.headers, cookies=self.get_cookies(),
File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 515, in request
prep = self.prepare_request(req)
File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 443, in prepare_request
p.prepare(
File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 318, in prepare
self.prepare_url(url, params)
File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 392, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '/V/?c=893&s=2&e=7&u=3727217&h=1fdb32d45a5a7bac64cbaa07490132f9&n=1&newbie=&br=&ts=1761969842': N

Originally created by @Grosses84 on GitHub (Nov 1, 2025). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/415 Собственно такой лог, возможно проблема только у меня. FAILED Exception while execute topic Traceback (most recent call last): File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 845, in execute episodes = self._prepare_request(topic) File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 922, in _prepare_request download_infos = self.tracker.get_download_info(topic.url, topic.cat, episode.season, episode.number) File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 624, in get_download_info download_page = session.get(download_page_url, headers=self.headers, cookies=self.get_cookies(), File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 542, in get return self.request('GET', url, **kwargs) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 515, in request prep = self.prepare_request(req) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 443, in prepare_request p.prepare( File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 318, in prepare self.prepare_url(url, params) File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 392, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL '/V/?c=893&s=2&e=7&u=3727217&h=1fdb32d45a5a7bac64cbaa07490132f9&n=1&newbie=&br=&ts=1761969842': N
Author
Owner

@Grosses84 commented on GitHub (Nov 1, 2025):

Такая картина если использовать файлик с предыдущего обсуждения.

FAILED
Exception: Invalid URL '/V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086': No scheme supplied. Perhaps you meant http:///V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086? Traceback (most recent call last): File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 185, in execute episodes = self._prepare_request(topic, scraper, domain) File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 224, in _prepare_request infos = self._get_download_info(topic.url, scraper, domain, show.cat, episode.season, episode.number) File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 305, in _get_download_info resp2 = scraper.get(download_page_url, stream=True) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 542, in get return self.request('GET', url, **kwargs) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 515, in request prep = self.prepare_request(req) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 443, in prepare_request p.prepare( File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 318, in prepare self.prepare_url(url, params) File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 392, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL '/V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086': No scheme supplied. Perhaps you meant http:///V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086?

<!-- gh-comment-id:3475735590 --> @Grosses84 commented on GitHub (Nov 1, 2025): Такая картина если использовать файлик с предыдущего обсуждения. FAILED Exception: Invalid URL '/V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086': No scheme supplied. Perhaps you meant http:///V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086? Traceback (most recent call last): File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 185, in execute episodes = self._prepare_request(topic, scraper, domain) File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 224, in _prepare_request infos = self._get_download_info(topic.url, scraper, domain, show.cat, episode.season, episode.number) File "C:\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 305, in _get_download_info resp2 = scraper.get(download_page_url, stream=True) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 542, in get return self.request('GET', url, **kwargs) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 515, in request prep = self.prepare_request(req) File "C:\Monitorrent\env\lib\site-packages\requests\sessions.py", line 443, in prepare_request p.prepare( File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 318, in prepare self.prepare_url(url, params) File "C:\Monitorrent\env\lib\site-packages\requests\models.py", line 392, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL '/V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086': No scheme supplied. Perhaps you meant http:///V/?c=615&s=5&e=10&u=3727217&h=0b1c174a84c7c7b73b99c98507918c45&n=1&newbie=&br=&ts=1761970086?
Author
Owner

@zalessky commented on GitHub (Nov 2, 2025):

Поправил

lostfilm.py

<!-- gh-comment-id:3477609279 --> @zalessky commented on GitHub (Nov 2, 2025): Поправил [lostfilm.py](https://github.com/user-attachments/files/23289210/lostfilm.py)
Author
Owner

@Grosses84 commented on GitHub (Nov 5, 2025):

Спасибо, всё отлично

<!-- gh-comment-id:3488827891 --> @Grosses84 commented on GitHub (Nov 5, 2025): Спасибо, всё отлично
Author
Owner

@a-flash commented on GitHub (Nov 7, 2025):

Спасибо за обновления, все отлично работает. Но вот попытался добавить новый сериал с Лоста "Робин Гуд" и вылезла такая ошибка:
FAILED Exception: '>' not supported between instances of 'int' and 'NoneType' Traceback (most recent call last): File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 185, in execute episodes = self._prepare_request(topic, scraper, domain) File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 220, in _prepare_request episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest] File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 220, in episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest] TypeError: '>' not supported between instances of 'int' and 'NoneType'

<!-- gh-comment-id:3505018402 --> @a-flash commented on GitHub (Nov 7, 2025): Спасибо за обновления, все отлично работает. Но вот попытался добавить новый сериал с Лоста "Робин Гуд" и вылезла такая ошибка: `FAILED Exception: '>' not supported between instances of 'int' and 'NoneType' Traceback (most recent call last): File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 185, in execute episodes = self._prepare_request(topic, scraper, domain) File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 220, in _prepare_request episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest] File "C:\Program Files (x86)\Monitorrent\monitorrent\plugins\trackers\lostfilm.py", line 220, in episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest] TypeError: '>' not supported between instances of 'int' and 'NoneType'`
Author
Owner

@zalessky commented on GitHub (Nov 8, 2025):

Imageудалил, добавил, проверил - все работает. Пока у меня не сделает так же - отловить баг не смогу.

Попробуй заменить этот фрагмент кода в файле lostfilm.py:

# Строка 216
latest = (topic.season, topic.episode)
if latest == (None, None):
    episodes = [show.last_season.last_episode] if show.last_season and show.last_season.last_episode else []
else:
    episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest]

На этот вариант:

# Предлагаемое исправление
latest = (topic.season, topic.episode)
if topic.season is None or topic.episode is None:
    episodes = [show.last_season.last_episode] if show.last_season and show.last_season.last_episode else []
else:
    episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest]
<!-- gh-comment-id:3506033201 --> @zalessky commented on GitHub (Nov 8, 2025): <img width="1099" height="869" alt="Image" src="https://github.com/user-attachments/assets/c4b7b02e-acb9-4b35-a181-715597e487aa" />удалил, добавил, проверил - все работает. Пока у меня не сделает так же - отловить баг не смогу. Попробуй заменить этот фрагмент кода в файле lostfilm.py: ``` # Строка 216 latest = (topic.season, topic.episode) if latest == (None, None): episodes = [show.last_season.last_episode] if show.last_season and show.last_season.last_episode else [] else: episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest] ``` На этот вариант: ``` # Предлагаемое исправление latest = (topic.season, topic.episode) if topic.season is None or topic.episode is None: episodes = [show.last_season.last_episode] if show.last_season and show.last_season.last_episode else [] else: episodes = [ep for s in show.seasons for ep in s.episodes if not isinstance(s.number, SpecialSeasons) and (s.number, ep.number) > latest] ```
Author
Owner

@a-flash commented on GitHub (Nov 11, 2025):

Поправил, теперь работает. Спасибо!

<!-- gh-comment-id:3518776024 --> @a-flash commented on GitHub (Nov 11, 2025): Поправил, теперь работает. Спасибо!
Author
Owner

@SaintMortum commented on GitHub (Dec 20, 2025):

Такая же проблема с https://www.lostfilm.download/series/Fallout

Exception while execute topic
Invalid URL '/V/?c=820&s=2&e=1&u=5756747&h=102a656e1b6ac90ba2ab17a84b60def3&n=1&newbie=&br=&ts=1766228099': No scheme supplied. Perhaps you meant http:///V/?c=820&s=2&e=1&u=5756747&h=102a656e1b6ac90ba2ab17a84b60def3&n=1&newbie=&br=&ts=1766228099?

@werwolfby планируется ли релиз с исправлениями?

<!-- gh-comment-id:3677734778 --> @SaintMortum commented on GitHub (Dec 20, 2025): Такая же проблема с https://www.lostfilm.download/series/Fallout Exception while execute topic Invalid URL '/V/?c=820&s=2&e=1&u=5756747&h=102a656e1b6ac90ba2ab17a84b60def3&n=1&newbie=&br=&ts=1766228099': No scheme supplied. Perhaps you meant http:///V/?c=820&s=2&e=1&u=5756747&h=102a656e1b6ac90ba2ab17a84b60def3&n=1&newbie=&br=&ts=1766228099? @werwolfby планируется ли релиз с исправлениями?
Author
Owner

@Leliil commented on GitHub (May 2, 2026):

Здравствуйте, у кого- то работает lostfilm?
requests.exceptions.MissingSchema: Invalid URL '/V/?c=362&s=9&e=4&u=1559072&h=ba6c1d5d7e6a9e73d0b060d1f75a34ed&n=1&newbie=&br=&ts=1777707682'
Получаю такую ошибку

<!-- gh-comment-id:4363346610 --> @Leliil commented on GitHub (May 2, 2026): Здравствуйте, у кого- то работает lostfilm? `requests.exceptions.MissingSchema: Invalid URL '/V/?c=362&s=9&e=4&u=1559072&h=ba6c1d5d7e6a9e73d0b060d1f75a34ed&n=1&newbie=&br=&ts=1777707682'` Получаю такую ошибку
Author
Owner

@zalessky commented on GitHub (May 2, 2026):

У меня работает...

<!-- gh-comment-id:4363435344 --> @zalessky commented on GitHub (May 2, 2026): У меня работает...
Author
Owner

@Leliil commented on GitHub (May 2, 2026):

У меня работает...

Может у меня файл lostfilm.py сломаный или старый? Я уже и vps поднял, сперва через vless хотел трафик направить, не вышло, решил локально проверить работу, на vps закинул базу данных и получаю такие же ошибки, уже не знаю как исправить работу :\

<!-- gh-comment-id:4363439620 --> @Leliil commented on GitHub (May 2, 2026): > У меня работает... Может у меня файл lostfilm.py сломаный или старый? Я уже и vps поднял, сперва через vless хотел трафик направить, не вышло, решил локально проверить работу, на vps закинул базу данных и получаю такие же ошибки, уже не знаю как исправить работу :\
Author
Owner
<!-- gh-comment-id:4363476126 --> @zalessky commented on GitHub (May 2, 2026): https://github.com/werwolfby/monitorrent/issues/415#issuecomment-3477609279 этот пробовал? И эту правку https://github.com/werwolfby/monitorrent/issues/415#issuecomment-3506033201
Author
Owner

@Leliil commented on GitHub (May 2, 2026):

#415 (comment) этот пробовал? И эту правку #415 (comment)

Да, получаю ошибку
`FAILED
Exception while execute topic
Traceback (most recent call last):
File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 845, in execute
episodes = self._prepare_request(topic)
File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 922, in _prepare_request
download_infos = self.tracker.get_download_info(topic.url, topic.cat, episode.season, episode.number)
File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 624, in get_download_info
download_page = session.get(download_page_url, headers=self.headers, cookies=self.get_cookies(),
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 515, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 443, in prepare_request
p.prepare(
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 318, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 392, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '/V/?c=362&s=9&e=4&u=1559072&h=8071b407659651a0ee5a095fa548ce48&n=1&newbie=&br=&ts=1777747121': No scheme supplied. Perhaps you meant http:///V/?c=362&s=9&e=4&u=1559072&h=8071b407659651a0ee5a095fa548ce48&n=1&newbie=&br=&ts=1777747121?

Пробую добавить что-то, распознает по ссылке, проверку делаю:
FAILED Exception while execute topic Traceback (most recent call last): File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 845, in execute episodes = self._prepare_request(topic) File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 908, in _prepare_request show = self.tracker.parse_url(topic.url, True) File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 554, in parse_url for season in self._parse_series(soup): File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 583, in _parse_series episode_number = int(play_episode_match.group('episode')) AttributeError: 'NoneType' object has no attribute 'group'

<!-- gh-comment-id:4363487259 --> @Leliil commented on GitHub (May 2, 2026): > [#415 (comment)](https://github.com/werwolfby/monitorrent/issues/415#issuecomment-3477609279) этот пробовал? И эту правку [#415 (comment)](https://github.com/werwolfby/monitorrent/issues/415#issuecomment-3506033201) Да, получаю ошибку `FAILED Exception while execute topic Traceback (most recent call last): File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 845, in execute episodes = self._prepare_request(topic) File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 922, in _prepare_request download_infos = self.tracker.get_download_info(topic.url, topic.cat, episode.season, episode.number) File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 624, in get_download_info download_page = session.get(download_page_url, headers=self.headers, cookies=self.get_cookies(), File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in get return self.request('GET', url, **kwargs) File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 515, in request prep = self.prepare_request(req) File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 443, in prepare_request p.prepare( File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 318, in prepare self.prepare_url(url, params) File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 392, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL '/V/?c=362&s=9&e=4&u=1559072&h=8071b407659651a0ee5a095fa548ce48&n=1&newbie=&br=&ts=1777747121': No scheme supplied. Perhaps you meant http:///V/?c=362&s=9&e=4&u=1559072&h=8071b407659651a0ee5a095fa548ce48&n=1&newbie=&br=&ts=1777747121? Пробую добавить что-то, распознает по ссылке, проверку делаю: `FAILED Exception while execute topic Traceback (most recent call last): File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 845, in execute episodes = self._prepare_request(topic) File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 908, in _prepare_request show = self.tracker.parse_url(topic.url, True) File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 554, in parse_url for season in self._parse_series(soup): File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 583, in _parse_series episode_number = int(play_episode_match.group('episode')) AttributeError: 'NoneType' object has no attribute 'group'`
Author
Owner

@zalessky commented on GitHub (May 2, 2026):

Да, получаю ошибку

на любой сериал или какой-то конкретный?

<!-- gh-comment-id:4364332477 --> @zalessky commented on GitHub (May 2, 2026): > Да, получаю ошибку на любой сериал или какой-то конкретный?
Author
Owner

@Leliil commented on GitHub (May 2, 2026):

Да, получаю ошибку

на любой сериал или какой-то конкретный?

Любой
Подключаюсь к контейнеру, пробую кинуть пинг до lostfilm, идёт, могу добавить по ссылке сериал, контейнер определяет имя
Раньше обходил блокировку, но с недавних пор провайдер блокировать начал протокол
Какие методы обхода сейчас работают? Есть vps забугорный

<!-- gh-comment-id:4364350127 --> @Leliil commented on GitHub (May 2, 2026): > > Да, получаю ошибку > > на любой сериал или какой-то конкретный? Любой Подключаюсь к контейнеру, пробую кинуть пинг до lostfilm, идёт, могу добавить по ссылке сериал, контейнер определяет имя Раньше обходил блокировку, но с недавних пор провайдер блокировать начал протокол Какие методы обхода сейчас работают? Есть vps забугорный
Author
Owner

@zalessky commented on GitHub (May 3, 2026):

Используй зеркала

<!-- gh-comment-id:4365620191 --> @zalessky commented on GitHub (May 3, 2026): Используй зеркала
Author
Owner

@Leliil commented on GitHub (May 3, 2026):

Используй зеркала

Имеете в виду разные окончания названия домена? one, download и прочие?

<!-- gh-comment-id:4365623302 --> @Leliil commented on GitHub (May 3, 2026): > Используй зеркала Имеете в виду разные окончания названия домена? one, download и прочие?
Author
Owner

@zalessky commented on GitHub (May 3, 2026):

да. в настройках трекера. у меня www.lostfilm.today прописан. работает пока...

<!-- gh-comment-id:4365646302 --> @zalessky commented on GitHub (May 3, 2026): да. в настройках трекера. у меня www.lostfilm.today прописан. работает пока...
Author
Owner

@Leliil commented on GitHub (May 3, 2026):

да. в настройках трекера. у меня www.lostfilm.today прописан. работает пока...

Я перебирал домены, ошибка с url выскакивает.
Я уже и на vps поднял докер, запустил там и не работает 😐 думал может с базой что-то, создал с нуля, добавил для теста задачу, результата нет
Может что-то с cookies сделать надо и поправить user agent?
Даже и не помню уже как я cf_clearance получил

<!-- gh-comment-id:4365653856 --> @Leliil commented on GitHub (May 3, 2026): > да. в настройках трекера. у меня [www.lostfilm.today](http://www.lostfilm.today) прописан. работает пока... Я перебирал домены, ошибка с url выскакивает. Я уже и на vps поднял докер, запустил там и не работает 😐 думал может с базой что-то, создал с нуля, добавил для теста задачу, результата нет Может что-то с cookies сделать надо и поправить user agent? Даже и не помню уже как я cf_clearance получил
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
werwolfby/monitorrent#326
No description provided.