ThioJoe / YT-Spammer-Purge

Allows you easily scan for and delete scam comments using several methods.
GNU General Public License v3.0
4.58k stars 389 forks source link

[Bug]: Can't identify unique channel ID's on its own without entering the full URL #624

Closed risbi0 closed 2 years ago

risbi0 commented 2 years ago

Duplicate Issues

What happened?

On the entering a channel ID or link part, when entering a unique channel ID by itself, the app displays an error "Invalid Channel link or ID!".

Now you may say that the user should just enter the full URL, and to that I suggest to make the prompt more specific, like "Enter a channel ID (not unique) or link...".

Release version

2.16.0-Beta1

Steps to reproduce

  1. Enter "2" for the scanning options
  2. Enter a unique channel ID on its own ("mkbhd", "NASA", etc.)

What platform are you seeing this problem on?

Windows (.exe file)

Relevant log output

No response

Screenshots

00bug 00bug1

ThioJoe commented 2 years ago

Technically those are not channel IDs. Might be able to have it check though

ThioJoe commented 2 years ago

A couple things to add that I've found. The YouTube API offers absolutely zero way to do a direct query to retrieve the channel ID if the /c/ channel URL is given, for some reason. It does however, offer a way to directly get the channel ID if it's a legacy username, so for "youtube.com/whatever", you can query for just "whatever". (Except apparently not always? See example below)

The problem with that is, sometimes the /c/ name is different from the legacy name. So if I were to add a thing to query the username "mkbhd" for example, it actually returns this channel id: UCmf_VrB73I-eJ3fq0adaOkg, which is not MKBHD's main channel: https://www.youtube.com/channel/UCmf_VrB73I-eJ3fq0adaOkg

In fact, it's not even the same channel that comes up if you type in youtube.com/mkbhd. (I think at some point, YouTube started using the /c/whatever URL if someone typed in just youtube.com/whatever. So unless they're the same, it might not give the same result) So there's not really any perfect solution.

ThioJoe commented 2 years ago

Gonna close this because it's probably not feasible based on the reasoning I gave above