0 of 0

File information

Last updated

Original upload

Created by

Kojillama

Uploaded by

Kojillama

Virus scan

Safe to use

196 comments

  1. aikomiko
    aikomiko
    • supporter
    • 0 kudos
    First off, many kudos to Kojillama for authoring this fantastic gem for MO2!

    For those having trouble getting this collections download tool (MO2 plugin) to work, it seems Nexus has modified the relevant URL patterns.

    The current Nexus URL pattern for Collections:
    https://www.nexusmods.com/games/{GAME_NAME}/collections/{COLLECTION_ID}

    and the API to download:
    https://www.nexusmods.com/games/api/graphql

    Editing two lines of python code in the MO2 plugin to match the new Nexus URL patterns gets this unique plugin back into full working state.

    Kojillama, might you make these updates?  I can post the code changes I have made but your official update would be great.

    Also, asking the author if there is a means within this plugin code to limit the number of simultaneously active downloads?  For me at least, there seems there may be intermittent download errors that seem to be exacerbated (or caused) by having a large number of downloads active at the same time.  An appropriate hardcoded limit, or the means for the user to enter a "max number of active downloads" might be a worthy addition to this very useful plugin (if possible).
    1. ToxicQuinnCT
      ToxicQuinnCT
      • premium
      • 0 kudos
      Which lines did you change?
    2. ZephP
      ZephP
      • supporter
      • 12 kudos
      the link in the line 70. Change it to  "https://www.nexusmods.com/games/api/graphql"
    3. aikomiko
      aikomiko
      • supporter
      • 0 kudos
      lines 45 & DF (hex), lines 69 & 223 (decimal)
    4. aikomiko
      aikomiko
      • supporter
      • 0 kudos
      ZephP, my text editor starts line numbering at zero
    5. al00ft
      al00ft
      • supporter
      • 0 kudos
      I've edited the lines as shown below:

      69. request = urllib.request.Request("https://www.nexusmods.com/games/api/graphql", data=json_data, headers=headers)

       223. pattern = r"https://www.nexusmods.com/games/{GAME_NAME}/collections/{COLLECTION_ID}"

      The tool still hangs at the window where you enter the collection URL. Did I not do this right?
    6. rebaine2308
      rebaine2308
      • premium
      • 0 kudos
      I am having the same issue.  I have copied the code changes via copy/ paste, and manually typed.  Neither worked unfortunately.
    7. jukiiinnnnn
      jukiiinnnnn
      • premium
      • 0 kudos
      ig he dont do this. the last update was last year >.<
    8. BioX853
      BioX853
      • supporter
      • 13 kudos
      Hey everyone! For this plugin to function correctly, all you need to do is this (using a tool like Notepad or Notepad++ to open the .py file):

      In line 69/70, replace the quote "https://next.nexusmods.com/api/graphql"

      TO:

      "https://www.nexusmods.com/games/api/graphql"

      Now, in line 223/224, replace the quote "next\.nexusmods\.com\/(.*?)\/collections\/(.*?)(?:\?.*)?$"

      TO:

      "nexusmods\.com\/games\/(.*?)\/collections\/(.*?)(?:\?.*)?$"

      If all of the above lines are rewritten as instructed, you can then save the .py file and reboot Mod Organizer 2. Enter the Collection link, press Next, and the plugin should now work as intended. Enjoy!
    9. Jeffm721
      Jeffm721
      • premium
      • 0 kudos
      This worked perfectly for me. Thank you
    10. Daegus
      Daegus
      • premium
      • 0 kudos
      I did this and I can get past the first screen where you put in the URL.  But the next screen where you choose the revision is blank and there is nothing in the drop down.  Is there another line that needs to be edited?
    11. BioX853
      BioX853
      • supporter
      • 13 kudos
      That's certainly odd. Is the collection you're trying to download removed, or something like that? Or did you input the correct link?
    12. Daegus
      Daegus
      • premium
      • 0 kudos
      No it wasn't removed.  Putting the link to it here to see if you can see what I'm missing.
      https://www.nexusmods.com/games/fallout4/collections/ldf8lp
    13. Cavalieredraghi
      Cavalieredraghi
      • premium
      • 1 kudos
      You all are Amazing thank you for this fix!
    14. Valini
      Valini
      • premium
      • 9 kudos
      BioX85's suggestion worked for me. Make sure the link you're copying from the collection has next.nexus instead of www.nexus
    15. aikomiko
      aikomiko
      • supporter
      • 0 kudos
      BioX853, thanks for posting your exact code changes.  I had made the same/equivalent code changes and they were working... until just a few minutes ago!  Has something new changed at Nexus?   Now also your changes don't seem to be work (for me at least).   Will update this post if I find out more.  THANKS everyone!
    16. Daegus
      Daegus
      • premium
      • 0 kudos
      Edit: NM looks like that workaround only worked once.

      But it looks like they've changed the API again
    17. CommonDominator
      CommonDominator
      • premium
      • 124 kudos
      The API endpoints is "https://api.nexusmods.com/v2/graphql".
      Check API reference at NexusMods GraphQL API Reference
      Replace API endpoints in line 70 from "https://next.nexusmods.com/api/graphql" to "https://api.nexusmods.com/v2/graphql".

      Line 224 should be changed as described by Biox853 if you are pasting a WWW.NexusMods URL and not a Next.NexusMods path.
    18. MrVReyes
      MrVReyes
      • premium
      • 1 kudos
      I've done all the fixes recommended in this thread and they all fail once i reach the "collection revision" selection. a pop up box shows up with the option to select the collection revision but the drop down selection doesn't open and pressing next just gives me this error.

      [2025-03-26 17:45:33.888 W] {'errors': [{'message': 'Game not found', 'locations': [{'line': 1, 'column': 67}], 'path': ['collection'], 'extensions': {'code': 'NOT_FOUND', 'detail': 'Game not found'}}], 'data': None}
      [2025-03-26 17:46:49.834 E] Traceback (most recent call last):
      [2025-03-26 17:46:49.834 E]   File "D:/MO2/plugins/NexusCollections.py", line 189, in next
      [2025-03-26 17:46:49.834 E]     self.collectionRevision = int(self.revisionList.currentText().replace('Revision ', '').split(' (')[0])
      [2025-03-26 17:46:49.835 E]                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [2025-03-26 17:46:49.835 E] ValueError: invalid literal for int() with base 10: ''
    19. aikomiko
      aikomiko
      • supporter
      • 0 kudos
      CommonDominator, thanks for the API endpoint and Reference link  
    20. LexiCalibre
      LexiCalibre
      • premium
      • 0 kudos
      THANK YOU SO MUCH CommonDominator That worked!!
    21. bertwarley
      bertwarley
      • premium
      • 0 kudos
      same here, did you find a solution to this?
  2. bertwarley
    bertwarley
    • premium
    • 0 kudos
    It won't let me select a revision. Does anyone know how to fix that?
  3. minjumaraj7x
    minjumaraj7x
    • premium
    • 1 kudos
    EDIT: ok so redragging it in the Mo2 plugins folder & restarted Mo2, now it showed up under the tools (puzzle piece) go figure Lol
    At first it wouldn't let me select a revision, it was just blank & clicking did nothing, then I remembered my collection was set to private, I made it listed public & now it works ha. 
    So for ppl having trouble double check the py file is in the plugins folder under Mo2's directory & make sure your collection is set to public. 
    1. bertwarley
      bertwarley
      • premium
      • 0 kudos
      How do I set it to public?
  4. Noctis3DArts
    Noctis3DArts
    • premium
    • 114 kudos
    It looks like Nexus changed the URLs for collections, still works but you have to copy-paste the example URL on the mod page, then replace the "Blahblahblah" part with the string of letters for the collection you are looking to download.
    1. Nauticalius
      Nauticalius
      • premium
      • 0 kudos
      Cheers for this.  I was trying all sorts and getting frustrated, but this works.

      If anyone is in the same boat as I was, the two changes are that the URL needs to start "https://next.nexus...", and that the ".com/games/collections..." bit needs to be stripped out.
  5. Trompdoy
    Trompdoy
    • premium
    • 1 kudos
    I'm premium, logged in and I've applied all the fixes already mentioned below in this section, yet I have the same issue where I paste the link to a collection (eg https://www.nexusmods.com/games/skyrimspecialedition/collections/sklk3h ) and press next, but nothing happens.

    Deep sigh.

    EDIT: got it to work now. Apparently I had been copying some wrong stuff and forgot to double check.
    So yeah, read carefully guys and it can work.
  6. Claxeius
    Claxeius
    • premium
    • 0 kudos
    So after putting in the URL and clicking Next, Nothing happens. Im trying to download Gate To Sovngarde collection and nothing happens. (Yes Im a Premium Member.)
  7. Nymeriss
    Nymeriss
    • member
    • 0 kudos
    Why the hell do we need nexus premium. Why is nexus torturing this way, I don't have 80$ to spend lmfao
  8. elminister
    elminister
    • premium
    • 0 kudos
    https://pastebin.com/H0TcdTpN

    Updated with new graph URL
    1. MrVReyes
      MrVReyes
      • premium
      • 1 kudos
      not working, says module PyQt5 is missing
    2. elminister
      elminister
      • premium
      • 0 kudos
      try replaceing PyQt5 with PyQt6 
    3. MrVReyes
      MrVReyes
      • premium
      • 1 kudos
      this worked thank you
    4. brunomarks23
      brunomarks23
      • premium
      • 0 kudos
      .
    5. brunomarks23
      brunomarks23
      • premium
      • 0 kudos
      .
    6. aloeislands
      aloeislands
      • premium
      • 0 kudos
      [2025-04-08 19:55:33.840 E]   File "C:/Modding/MO2/plugins/NexusCollections.py", line 189, in next
      [2025-04-08 19:55:33.841 E]     self.collectionRevision = int(self.revisionList.currentText().replace('Revision ', '').split(' (')[0])
      [2025-04-08 19:55:33.841 E]                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [2025-04-08 19:55:33.841 E] ValueError: invalid literal for int() with base 10: ''
       can anyone help with this?? trying to pick a revision version gives me this error
    7. kerangajaib
      kerangajaib
      • premium
      • 0 kudos
      its worked thank you
  9. CallofOniiChan
    CallofOniiChan
    • premium
    • 0 kudos
    Thank you for this beautiful big beautiful plugin I LOVE YA WHOEVER YA ARE no homo. YOU ARE A BLESSING THANK YOU! THIS IS THE BEST PLUGIN OF ALL PLGUINS ITS A BEAUTIFUL PLUGIN OF PLUGINS THANK YOU SO MUCH! 
  10. brunomarks23
    brunomarks23
    • premium
    • 0 kudos
    lixo...voce clica em next e nada acontece,uma bosta esse plugin,não funciona...podre