Skip to content

Commit

Permalink
v2.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneezedip authored Oct 5, 2024
1 parent 9d94723 commit f893db5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
7 changes: 5 additions & 2 deletions Modules/VideoInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, video_url):
self.data = None

def _extract_video_id(self):
match = re.search(r'tiktok\.com/@[^/]+/video/(\d+)', self.video_url)
match = re.search(r'tiktok\.com/@[^/]+/video/(\d+)', self.video_url) or re.search(r'tiktok\.com/@[^/]+/photo/(\d+)', self.video_url)
if match:
return match.group(1)
else:
Expand Down Expand Up @@ -95,7 +95,10 @@ def _get_video_info(self, Creator=False, Views=False, Likes=False, Shares=False,
return "Unable to gather information after multiple attempts."

if Creator:
return re.search(r'tiktok\.com/@([^/]+)/video/', self.video_url).group(1)
try:
return re.search(r'tiktok\.com/@([^/]+)/video/', self.video_url).group(1)
except:
return re.search(r'tiktok\.com/@([^/]+)/photo/', self.video_url).group(1)
elif Views:
return self.data.get('video_views_count', 'View count not available')
elif Likes:
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ To run the program, follow these steps:
4. **Wait:**
- Allow the program to run and complete its tasks. This may take some time depending on the configurations and operations being performed.

# Version 2.7.2
# Version 2.7.3
- Fixed:
- Fixed white screen when running the program with headless in true.
- Bonus:
- Replaced some errors.
- Fixed not accepting photo videos.


### for more info check [*versionslog.md*](https://github.com/Sneezedip/Tiktok-Booster/blob/main/versionslog.MD)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.2
2.7.3
10 changes: 4 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
from datetime import datetime, timedelta
from discordwebhook import Discord
from Modules.VideoInfo import TikTokVideoInfo
except ImportError:
print('Installing Libraries...')
os.system("pip install -r requirements.txt")
print('Libraries installed. Restart the program!')
sys.exit()
except Exception as e:
print(e)
input()

# Configurations
config = configparser.ConfigParser()
Expand Down Expand Up @@ -527,7 +525,7 @@ def _menu(self):
if ProgramUsage.vk():
pass
os.system("cls") if os.name == 'nt' else os.system("clear")
check_version("2.7.2")
check_version("2.7.3")
show_credits()
is_first_run()
TikTokBooster()
4 changes: 4 additions & 0 deletions versionslog.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 2.7.3
- Fixed:
- Fixed not accepting photo videos.

# Version 2.7.2
- Fixed:
- Fixed white screen when running the program with headless in true.
Expand Down

0 comments on commit f893db5

Please sign in to comment.