Skip to content

Commit

Permalink
Update Patch Version - 2.2.3, Add comment Disabled error messaging
Browse files Browse the repository at this point in the history
Update patch version number. Also add exception handle for when scanning live streams or comments are disabled.
  • Loading branch information
ThioJoe committed Dec 22, 2021
1 parent 9106a30 commit 40538e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion YouTubeSpammerPurge.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
### IMPORTANT: I OFFER NO WARRANTY OR GUARANTEE FOR THIS SCRIPT. USE AT YOUR OWN RISK.
### I tested it on my own and implemented some failsafes as best as I could,
### but there could always be some kind of bug. You should inspect the code yourself.
version = "2.2.2"
version = "2.2.3"
configVersion = 10
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

Expand Down Expand Up @@ -2735,6 +2735,8 @@ def scan_video(youtube, miscData, currentUser, filterMode, filterSubMode, videoI
print(f"\n !! {F.RED}Processing Error{S.R} - Sometimes this error fixes itself. Try just running the program again. !!")
print("This issue is often on YouTube's side, so if it keeps happening try again later.")
print("(This also occurs if you try deleting comments on someone elses video, which is not possible.)")
elif reason == "commentsDisabled":
print("\n Error: Comments are disabled on this video. This error can also occur if scanning a live stream.")
input("\n Press Enter to Exit...")
else:
print(f"{F.RED}Unknown Error - Code: X-2{S.R} occurred. If this keeps happening, consider posting a bug report on the GitHub issues page, and include the above error info.")
Expand Down

0 comments on commit 40538e7

Please sign in to comment.