Skip to content

Commit 9e53335

Browse files
authored
Bypass Cloudflare TOS
1 parent 8b23fcb commit 9e53335

File tree

1 file changed

+4
-1
lines changed
  • kubespider/source_provider/ani_source_provider

1 file changed

+4
-1
lines changed

kubespider/source_provider/ani_source_provider/provider.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,11 @@ def get_links_from_xml(self, tmp_xml, blacklist) -> list[Resource]:
170170
# Pass blacklist Animes
171171
if self.check_blacklist(xml_title, blacklist):
172172
continue
173+
final_url = i.find('./guid').text
174+
if 'resources.ani.rip' in final_url:
175+
final_url = final_url.replace('resources.ani.rip', 'cloud.ani-download.workers.dev')
173176
res = Resource(
174-
url=i.find('./guid').text,
177+
url=final_url,
175178
path=self.save_path + (f'/{item_title}' if self.classification_on_directory else ''),
176179
file_type=types.FILE_TYPE_VIDEO_TV,
177180
link_type=self.get_link_type(),

0 commit comments

Comments
 (0)