ToxicFrog / bltool

A tool for command line interaction with backloggery.com
Apache License 2.0
78 stars 9 forks source link

Unable to filter out duplicates #20

Open Seemefly opened 8 years ago

Seemefly commented 8 years ago

Hello,

I'm trying to filter out duplicates in my backloggery due to accidentally using bltool twice, and I'm trying to use the code you displayed on the main page:

bltool --from backloggery --bl-name MyName --bl-pass TopSecret --output text \ | sort | uniq -d -f3 \ | bltool --from text --to bl-delete --bl-name MyName --bl-pass TopSecret

Regardless if I put in the correct log in information steam2backloggery.bat shuts down each time. I'm almost unable to read the error code. But I think it says unrecognized batch command or something along those lines. I apologize, I'm not too familiar with Java but I can't figure out what's the problem.

On a side note, is it possible to change the platform from PC to Steam? Or would I have to manually add all 350ish games? Because man, that would be a pain.

ToxicFrog commented 8 years ago

That code is both outdated and Linux-specific; it won't work on windows (it doesn't have the right tools) and it probably doesn't work on Linux any more, either. I should remove it.

If you're on windows and want to remove duplicates, your best bet is something like:

bltool --from backloggery --to text --output games.txt --bl-name ... --bl-pass ...
(edit games.txt with a text editor so that *only* the duplicates are left in the file)
bltool --from text --input games.txt --to bl-delete --bl-name ... --bl-pass ...

The first tool downloads a list of all your games on backloggery, the second one deletes everything left in the file after you've edited it. The editing will probably be tedious, but faster than doing it through the web interface.

That said, if you've only just started using this backloggery account and don't care about wiping it and starting over, you can just delete everything and re-import afterwards:

bltool --from backloggery --to bl-delete --bl-name ... --bl-pass ...

This will nuke everything in your backloggery account while leaving the account itself intact. Obviously don't do this if there's other, non-automatically-imported games in there you care about!

As for changing the platform from PC to Steam -- when doing the initial download (with --from steam), use --steam-platform Steam and it'll produce the right results. Alternately, when it prompts you to edit the file before import, find-replace "PC" with "Steam" in the file.

ToxicFrog commented 8 years ago

As a side note, I should really (in my copious spare time, ha ha) write a GUI for this and automate support for some common tasks like "remove duplicates".