It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
Revan67: Haha fair enough i added to the path just because i am lazy :) And wrote a powershell wrapper so I could be even more lazy
avatar
clisair: what is the powershell wrapper that you used?
Just a little something I put together to make my life easier, it is kinda tailored for me but it should be easy to figure out and adjust. Lines 25-29 pertain to getting all the soundtracks and copying them to another folder you can safely delete those lines if you wish.

https://github.com/Revan67/Public-Powershell/blob/master/gogrepo.ps1

Edit: Should probably mention this script assumes you added python to the windows environment variables.
Post edited November 23, 2018 by Revan67
avatar
clisair: what is the powershell wrapper that you used?
avatar
Revan67: Just a little something I put together to make my life easier, it is kinda tailored for me but it should be easy to figure out and adjust. Lines 25-29 pertain to getting all the soundtracks and copying them to another folder you can safely delete those lines if you wish.

https://github.com/Revan67/Public-Powershell/blob/master/gogrepo.ps1

Edit: Should probably mention this script assumes you added python to the windows environment variables.
On a side note, i wonder if it's possible to get a python script to run pip for people, for people who don't know how to change the environment variable.
Revan67 I like the idea about the soundtracks. I am always trying to figure out if I have them all in my library or not for my music collection
avatar
kohlrak: On a side note, i wonder if it's possible to get a python script to run pip for people, for people who don't know how to change the environment variable.
I am still a python noob but from my understanding PIP is actually run from the command prompt not python itself.

avatar
clisair: Revan67 I like the idea about the soundtracks. I am always trying to figure out if I have them all in my library or not for my music collection
Yea I have been slowly over time been working on how to separate out the zips containing the soundtracks. The thing that drove me nuts was figuring out how to tell it if you see filename with MP3 and FLAC exists in the same filename delete the MP3 lol.
Post edited November 23, 2018 by Revan67
avatar
Revan67: Yea I have been slowly over time been working on how to separate out the zips containing the soundtracks. The thing that drove me nuts was figuring out how to tell it if you see filename with MP3 and FLAC exists in the same filename delete the MP3 lol.
Edited a copy of the file just for the soundtracks and it copied empty folders and put the mp3's and flac's that were in them in the same folder as all of the zips. Any idea how to stop that behaviour and have the files stay in the copied directories?

I will say that the script found more soundtracks than I thought I had :)
avatar
kohlrak: On a side note, i wonder if it's possible to get a python script to run pip for people, for people who don't know how to change the environment variable.
avatar
Revan67: I am still a python noob but from my understanding PIP is actually run from the command prompt not python itself.
Most languages allow the "command prompt" to also be run from within the scripts. I don't use python (i'm more C++, Assembly, PHP), so i don't know the limitations placed on python, which is why i wonder.
avatar
clisair: Edited a copy of the file just for the soundtracks and it copied empty folders and put the mp3's and flac's that were in them in the same folder as all of the zips. Any idea how to stop that behaviour and have the files stay in the copied directories?

I will say that the script found more soundtracks than I thought I had :)
Hrm that isn't behavior I coded in, it should only dump the zip files into a single directory. If it isn't doing that make sure you have lines 1-3 plus 25-29 in your file. That is all that should be needed to copy the soundtracks.
avatar
kohlrak: Most languages allow the "command prompt" to also be run from within the scripts. I don't use python (i'm more C++, Assembly, PHP), so i don't know the limitations placed on python, which is why i wonder.
If you know where python is installed on your computer you could simply run this command from an administrator powershell window

[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path + ";C:\Python33", "Machine")

Where C:\Python33 is, type in the path of your Python install sometimes its at C:\Pythonxx or sometimes its under C:\Users\Username\AppData\Local\Programs\Python\Pythonxx\
Post edited November 23, 2018 by Revan67
avatar
clisair: Edited a copy of the file just for the soundtracks and it copied empty folders and put the mp3's and flac's that were in them in the same folder as all of the zips. Any idea how to stop that behaviour and have the files stay in the copied directories?

I will say that the script found more soundtracks than I thought I had :)
avatar
Revan67: Hrm that isn't behavior I coded in, it should only dump the zip files into a single directory. If it isn't doing that make sure you have lines 1-3 plus 25-29 in your file. That is all that should be needed to copy the soundtracks.
avatar
kohlrak: Most languages allow the "command prompt" to also be run from within the scripts. I don't use python (i'm more C++, Assembly, PHP), so i don't know the limitations placed on python, which is why i wonder.
avatar
Revan67: If you know where python is installed on your computer you could simply run this command from an administrator powershell window

[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path + ";C:\Python33", "Machine")

Where C:\Python33 is, type in the path of your Python install sometimes its at C:\Pythonxx or sometimes its under C:\Users\Username\AppData\Local\Programs\Python\Pythonxx\
THe point is, the average person wants to use gogrepo and has no idea how to do that. For me i's not problem: i'm running this on a linux box, so when i DNF install python, it's already thrown into /usr/bin. I'm more worried about the other people here who don't know what the word "shell" mean.
avatar
kohlrak: THe point is, the average person wants to use gogrepo and has no idea how to do that. For me i's not problem: i'm running this on a linux box, so when i DNF install python, it's already thrown into /usr/bin. I'm more worried about the other people here who don't know what the word "shell" mean.
Ah fair points all around, I am no programmer so an all in one solution is not something i could put together but I do agree GOGrepo if it was more user friendly would be a lot more widely used i think.
What would be cool is if you could figure out how the links for GOG downloader hook into the downloader and have gogrepo do it instead. Would take some of the fiddling out of the equation.
avatar
clisair: What would be cool is if you could figure out how the links for GOG downloader hook into the downloader and have gogrepo do it instead. Would take some of the fiddling out of the equation.
one of these days I will have to sit down and see how much of gogrepo I can duplicate in powershell. Something native for windows computers at least
avatar
clisair: What would be cool is if you could figure out how the links for GOG downloader hook into the downloader and have gogrepo do it instead. Would take some of the fiddling out of the equation.
avatar
Revan67: one of these days I will have to sit down and see how much of gogrepo I can duplicate in powershell. Something native for windows computers at least
youtube-dl for windows comes as an exe, but is normally written in python, iirc. Might want to figure out how they managed that.
used to read a bit of gogrepo's guts - found unmentioned in readme '-skiphidden' and '-skipids' options. Do they work?

Also. Lets say, I need games 1-7 for windows en, game 8 - windows de (for example), game 9 - linux en de. And I wanna download them this way forever.
What the valid commands will be?

Something about these? (and, overall - do -id; -skipids and other similar things work for multiple items at once?)

gogrepo.py update -os windows -lang en -skipids 'game 8'; 'game 9' -skiphidden
gogrepo.py update -os windows -lang de -id 'game8'
gogrepo.py update -os linux -lang en de -id 'game9'
gogrepo.py download
Post edited November 27, 2018 by Gekko_Dekko
avatar
Gekko_Dekko: used to read a bit of gogrepo's guts - found unmentioned in readme '-skiphidden' and '-skipids' options. Do they work?

Also. Lets say, I need games 1-7 for windows en, game 8 - windows de (for example), game 9 - linux en de. And I wanna download them this way forever.
What the valid commands will be?

Something about these? (and, overall - do -id; -skipids and other similar things work for multiple items at once?)

gogrepo.py update -os windows -lang en -skipids 'game 8'; 'game 9' -skiphidden
gogrepo.py update -os windows -lang de -id 'game8'
gogrepo.py update -os linux -lang en de -id 'game9'
gogrepo.py download
avatar
Gekko_Dekko:
It's
gogrepo.py update -os windows -lang en -skipids game8 game9 -skiphidden

and similar for the rest. No quotes. -id is also deprecated use -ids instead (it allows lists and -id just redirects the list of one to -ids anyway).

Be aware that the id arguments use the folder names or the games numeric ID , eg for Bard's Tale IV the id can be 1178190421 or the_bards_tale_iv_barrows_deep but it can't be "The Bard's Tale IV: Barrows Deep".




That's fine but if you've got a prebuilt manifest you should generally use -skipids on downloads not updates (because it only skips updating the game in question it doesn't remove the previous version you'd have).



I generally recommend doing filtering on downloads rather than updates anyway unless it's something you know you'll never use (so languages / OSs mainly).
avatar
Kalanyr: unless it's something you know you'll never use
this ^
Thanks so much.

Btw - where do you get folder names? And is there any difference in between skipping by ID and skipping by folder name?