Giter VIP home page Giter VIP logo

Comments (5)

disi avatar disi commented on September 27, 2024

Maybe this works (paragraph 3)
https://github.com/disi/gogrepo/wiki
And some additional documentation to explain that 'en' should be mandatory and other langauages are seen as addition?

from gogrepo.

disi avatar disi commented on September 27, 2024

They are not really duplicate url but the same file, like this:

 'downloads': [{'desc': u'Broken Age: The Complete Adventure',
                 'href': u'https://www.gog.com/downlink/broken_age/de1installer2',
                 'lang': u'Deutsch',
                 'md5': 'f9cfbe7fb3dc460a435ba6e91d8e5a48',
                 'name': 'setup_broken_age_2.2.0.8.exe',
                 'os_type': u'windows',
                 'size': 2144565808,
                 'version': u'2.0 (gog-8)'},
                {'desc': u'Patch 2.2',
                 'href': u'https://www.gog.com/downlink/broken_age/de1patch1',
                 'lang': u'Deutsch',
                 'md5': '0e538e59b33909210b0caed3c3868dd8',
                 'name': 'patch_broken_age_2.2.1.9.exe',
                 'os_type': u'windows',
                 'size': 1794432,
                 'version': u'2.0 (gog-8) -> 2.2 (gog-9)'},
                {'desc': u'Broken Age: The Complete Adventure',
                 'href': u'https://www.gog.com/downlink/broken_age/en1installer2',
                 'lang': u'English',
                 'md5': 'f9cfbe7fb3dc460a435ba6e91d8e5a48',
                 'name': 'setup_broken_age_2.2.0.8.exe',
                 'os_type': u'windows',
                 'size': 2144565808,
                 'version': u'2.0 (gog-8)'},
                {'desc': u'Patch 2.2',
                 'href': u'https://www.gog.com/downlink/broken_age/en1patch1',
                 'lang': u'English',
                 'md5': '0e538e59b33909210b0caed3c3868dd8',
                 'name': 'patch_broken_age_2.2.1.9.exe',
                 'os_type': u'windows',
                 'size': 1794432,
                 'version': u'2.0 (gog-8) -> 2.2 (gog-9)'}],

from gogrepo.

eddie3 avatar eddie3 commented on September 27, 2024

yeah the href will be different, but the file name and MD5 should be the same, as you show above. this is only known after doing the href fetch itself. Some commands like download/verify/backup/import will need to take this into consideration.

I'm starting to wonder if using AttrDict is getting out of hand.. thinking of maybe going SQLite route in future.

Hope to have some time this weekend for this.

from gogrepo.

disi avatar disi commented on September 27, 2024

If we assume that the file name is unique for all games?

Extras have wc4_wallpapers.zip for example.
DLC have setup_starpoint_gemini_2_secrets_of_aethera_2.2.0.8.exe
Game files have setup_sw_rebellion_2.0.0.4.exe or setup_sw_rebellion_german_2.0.0.4.exe

I added all downloads to a dict with key dest_file before adding the dict to the queue, this seems to work just fine
disi@f7c9d59

from gogrepo.

eddie3 avatar eddie3 commented on September 27, 2024

Thank you disi! Looks good to me.. I have merged your changes.

from gogrepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.