Filter by (extra) type #101
denilsonsa
started this conversation in
Ideas
Replies: 2 comments
-
Interesting idea, I'll do a check through my manifest when I get a chance
and verify that desc is well-formed enough for this to work consistently.
…On Mon, 22 Jan 2024, 23:51 Denilson Sá Maia, ***@***.***> wrote:
I wanted to download all my soundtracks from GOG, but none of the game
files and none of the wallpapers and none of the art books…
I know I can skip the game files:
python gogrepoc.py download -skipgalaxy -skipstandalone -skipshared -skipgames
But there is no parameter to filter out specific kinds of extras. Yes,
there is a file filter, but it doesn't work, as some soundtracks have _ost
in the filename while others have _soundtrack.
As a quick hack, I've added this code around line 1950
<https://github.com/Kalanyr/gogrepoc/blob/62a141892ea138810578e368bc2a5ec4e17b9b75/gogrepoc.py#L1948>
:
item.extras = [ x for x in item.extras if 'soundtrack' in x.desc.lower() ]
If this idea gets implemented, we could have a new command to list all the
possible values for the extras[i].desc, and then have a new parameter to
the download command to filter by the specified values.
—
Reply to this email directly, view it on GitHub
<#101>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKZ336YJY7TRSFNJKFCLPDYPZVEXAVCNFSM6AAAAABCFHZVHWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGEYTQOBXGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm looking at the manifest now. Unfortunately, it's not well-formatted enough. It's still possible to get some patterns for most soundtracks (like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to download all my soundtracks from GOG, but none of the game files and none of the wallpapers and none of the art books…
I know I can skip the game files:
But there is no parameter to filter out specific kinds of extras. Yes, there is a file filter, but it doesn't work, as some soundtracks have
_ost
in the filename while others have_soundtrack
.As a quick hack, I've added this code around line 1950:
If this idea gets implemented, we could have a new command to list all the possible values for the
extras[i].desc
, and then have a new parameter to thedownload
command to filter by the specified values.Beta Was this translation helpful? Give feedback.
All reactions