Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Some Fixes #3

Merged
merged 2 commits into from
Nov 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_embed():
if url and '.m3u8' not in url:
return redirect(url)

if '.m3u8' in url:
if '.m3u8' in url or '.mp4' in url or '.mkv' in url:
file = url
else:
file = request.args.get('file')
Expand Down Expand Up @@ -81,7 +81,7 @@ def get_anime(anime):
synopsis = data.get('description')
names = get_other_title(data.get('title'))
studios = get_studios(data.get('studios'))
episodes = 'Ep ' + str(data.get('totalEpisodes'))
episodes = str(data.get('totalEpisodes'))
genres = get_genre_html(data.get('genres'))
displayAnime = animeRecHtml(data.get('recommendations'))
ep_html = get_eps_html(anime, title)
Expand Down Expand Up @@ -127,4 +127,4 @@ def search_anime():


# if __name__ == '__main__':
# app.run('0.0.0.0')
# app.run('0.0.0.0')