Skip to content

Commit

Permalink
MTV: force approved image hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
L4GSP1KE committed Jun 13, 2023
1 parent 0f11624 commit 005ee2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/trackers/MTV.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def upload(self, meta):


if not new_torrent.piece_size <= 8388608:
print("Piece size is OVER 8M and wont Work on MTV, Please Generate a new torrent and replace BASE.torrent")
console.print("[red]Piece size is OVER 8M and wont Work on MTV, Please Generate a new torrent and replace BASE.torrent")
pass


Expand All @@ -62,6 +62,10 @@ async def upload(self, meta):
origin_id = await self.get_origin_id(meta)
# getting tags
des_tags = await self.get_tags(meta)
# check for approved imghosts
approved_imghosts = ['ptpimg', 'imgbox', 'empornium']
if not all(any(x in image['raw_url'] for x in approved_imghosts) for image in meta['image_list']):
console.print("[red]Unsupported image host detected, please use one of the approved imagehosts")
# getting description
await self.edit_desc(meta)
# getting groups des so things like imdb link, tmdb link etc..
Expand Down

1 comment on commit 005ee2e

@Slikkster
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imgbb is also an approved image host on MTV, confirmed by staff. /forum/thread/3237?postid=78673#post78673

Please sign in to comment.