Skip to content

Commit

Permalink
🛠️ v0.0.7 Fixes And Typos 🛠️ (#11)
Browse files Browse the repository at this point in the history
naming fixes
auto env gen win64bit binary added
  • Loading branch information
kaif-00z authored May 28, 2024
1 parent 7a7f26e commit 89300cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
Binary file added auto_env_gen.exe
Binary file not shown.
17 changes: 4 additions & 13 deletions auto_env_gen.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
import asyncio
import os
import random
import sys
from traceback import format_exc

try:
from telethon import TelegramClient
from telethon.sessions import StringSession
from telethon.tl.functions.channels import CreateChannelRequest
from telethon.tl.functions.contacts import UnblockRequest
except ModuleNotFoundError:
print("Downloading Telethon...")
os.system(f"{sys.executable} -m pip install telethon")
from telethon import TelegramClient
from telethon.sessions import StringSession
from telethon.tl.functions.channels import CreateChannelRequest
from telethon.tl.functions.contacts import UnblockRequest
from telethon import TelegramClient
from telethon.sessions import StringSession
from telethon.tl.functions.channels import CreateChannelRequest
from telethon.tl.functions.contacts import UnblockRequest

DATA = {}
ENV = """
Expand Down
4 changes: 2 additions & 2 deletions functions/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ async def rename(self, original=False):
anime_name = self.data.get("anime_title")
if anime_name and self.data.get("episode_number"):
return (
f"[S{self.data.get('anime_season') or 1}-{self.data.get('episode_number') or ''}] {(await self.get_english())} [{self.data.get('video_resolution').replace('p', 'px264' if original else 'px265') or ''}].mkv".replace(
f"[S{self.data.get('anime_season') or 1}-{self.data.get('episode_number') or ''}] {(await self.get_english())} [{self.data.get('video_resolution')}].mkv".replace(
"‘", ""
)
.replace("’", "")
.strip()
)
if anime_name:
return (
f"{(await self.get_english())} [{self.data.get('video_resolution').replace('p', 'px264' if original else 'px265') or ''}].mkv".replace(
f"{(await self.get_english())} [{self.data.get('video_resolution')}].mkv".replace(
"‘", ""
)
.replace("’", "")
Expand Down

0 comments on commit 89300cf

Please sign in to comment.