Extras icon indicating copy to clipboard operation
Extras copied to clipboard

[Request] YT-Spammer-Purge

Open kennedy opened this issue 4 years ago • 6 comments

Package Request

Information

Name: YT-Spammer-Purge

Description: Allows you to filter and search for spammer comments on your channel and other's channel(s) in many different ways AND delete/report them all at once

Homepage: https://github.com/ThioJoe/YT-Spammer-Purge

Download link(s): https://github.com/ThioJoe/YT-Spammer-Purge/releases/download/v2.16.7/YTSpammerPurge.2.16.7.exe

Some indication of popularity/repute: 3.4k stars, featured in a MKBHD video

kennedy avatar Apr 02 '22 02:04 kennedy

I made a manifest for this: https://github.com/tech189/Extras/blob/tech189-yt-spammer-purge/bucket/yt-spammer-purge.json

However, as far as I can tell, the program depends on being run from the folder it is located in, so it can find the client_secrets.json file. So a shim won't work unless you run it from the installation folder, defeating the point of a shim. Are there any cmd-line options to use client_secrets.json saved elsewhere?

Or alternatively, we could make a shortcut instead of a shim that opens correctly:

"shortcuts": [
        [
            "YTSpammerPurge.exe",
            "YouTube Spammer Purge"
        ]
    ],

tech189 avatar Apr 04 '22 22:04 tech189

@tech189 I have not seen shortcuts before, where can I read more about this?

I think if we write instructions to make sure a client_secrets.json is in the scoop install dir, it would be enough.

We can even give a warning the app will not work without it.

I just prefer not needing to update it manually

kennedy avatar Apr 05 '22 01:04 kennedy

You can read more about shortcuts here: https://github.com/ScoopInstaller/Scoop/wiki/App-Manifests

I've updated my manifest to create & persist the client secrets, the config file and the Resources folder, could you try it out? (I don't have an API key or a YT channel I can test with)

It installs with the caveat that you have to use either the Start Menu shortcut or run it directly from the installation folder. Let's see if the maintainers are okay with that.

tech189 avatar Apr 05 '22 09:04 tech189

The Start Menu shortcut is good option

rashil2000 avatar Apr 05 '22 09:04 rashil2000

@tech189 You can do the same thing with the bin variable like I did with the crunchyroll-go manifest I made....

"bin": [
    "crunchy-v2.1.0_windows.exe",
    [
        "crunchy-v2.1.0_windows.exe",
        "crunchy"
    ],
    [
        "crunchy-v2.1.0_windows.exe",
        "crunchyroll-go"
    ]
]

Similarly you could use

"bin": [
    "YTSpammerPurge.exe",
    [
        "YTSpammerPurge.exe",
        "ytpurge"
    ],
    [
        "YTSpammerPurge.exe",
        "ytsp"
    ]
]

Like the contributing article clarifies , the bin variable helps with command line applications, allowing you to easily execute them from any directory withing the terminal. Where the shortcuts variable helps with GUI applications.

AdmnJ avatar Apr 25 '22 10:04 AdmnJ

Initially, I thought that the program only accepts client_secrets.json in the folder the exe is located but on further investigation, it can also get the file from the directory the program is started in. However, I don't know and can't test if it is able to read its config file or save data in the correct place when run outside of its installation folder. So to be safe, I left it as a shortcut that always opens the program in the same place. If someone with a YT channel could test the program that would be amazing!

tech189 avatar Apr 25 '22 12:04 tech189