linuxserver / emulatorjs

Self hosted web based retro emulation front end with rom and art management.
422 stars 32 forks source link

[Feature Request] Easier button to upload assets #115

Closed gr33k closed 10 months ago

gr33k commented 11 months ago

I see the instructions for doing a curl, but some of the names have [!] and what not making it a pain...

Could there be an option somewhere to check for any new Assets we upload? Also - I tried to upload them in the interface and it didn't work. I saw someone else mention that we should upload the files directly in to the assets folders, and that DOES work...but would be nice to make it easier to upload and submit these (perhaps more people would do it).

Thanks for the great work on this project! I do hope to see some of the other emulator cores ported if you have the time to do so (https://github.com/BinBashBanana/webretro and other sources - would love ScummVM!)

thelamer commented 10 months ago

The core premise around this is once you have uploaded any assets and linked the rom the custom metadata tab in the backend shows the data I would need to add to the metadata here: https://github.com/linuxserver/emulatorjs/tree/master/metadata

If you toss that in pastebin and link it in even an issue it can be added, really looking for people that needed to manually link whole collections for unkown sha1 references like so the next person does not have to do that linking:

{
  "7B8ABB3A03809C8F8B5C2DBC45ECBB79FAF234E0": {
    "ref": "C339455D5B1DAE04F77C2EE847D0932ADAF2E84B"
  },
  "BF4F759D239760DA1C86B0A588CAA31A14C85AA9": {
    "ref": "A31F11658B41411A412D5F8735B5D7FBFBAEF5D7"
  },
  "BD806EB365A2921BDAB80467C6F2A724395EDCC4": {
    "ref": "7EE948C0D8E695E1642A8B582C83850D24B15666"
  },
  "EDC0D666BF03C53ED525DD86DB795FC78BDBAD9B": {
    "ref": "F63C1F4D3AFA0FC6BEF12A1F5A911B71261CBEE9"
  },
  "2AD91E2898CB59D8C8E495D67AF673E01D66C1AE": {
    "ref": "848FCD22794526BFD093030C6D6AE6B632D87E4B"
  },
  "CCFF343872F6EA4E97F4738DF3B0A221329941F9": {
    "ref": "CB3E7D0FAFC6A4B05DD24E38611B4C1B486962FF"
  },
  "B4060E56111307A1195BA18AEB6BCD95C7ADA37D": {
    "ref": "289AF72D48C8758BCA46B7FEDEF97A88EA376BDE"
  },
  "D127F58692D9A0416F505653AB3DD73400C32399": {
    "ref": "5901886282B7D12A39853B9CA16B64344D6D555E"
  }
}
gr33k commented 10 months ago

Ok, so I go to the metadata tab and it shows any metadata I've done. I'll post them here and let me know if this is good please?

3DO: https://paste.thec0de.com/?693c0b960a422e20#GhBJqJHqfSrvne86G1pCgkW1TspoyQ9z22bhk6Xm3i87 Arcade: https://paste.thec0de.com/?92e1010f89a3f0fa#3WpPgJyjPVpfSv4Y8jE4PoCKtx55iYsCSdb3rkjjXt1z Atari2600: https://paste.thec0de.com/?1ba8ce123b99f1f9#RFbBzRJpgxHUz1n5Cpg3dQ2NnPdy2EYAMvBkjZrhqJU Atari7800: https://paste.thec0de.com/?5fbe00ef1d509539#D5p3UfzUP7uGJ19yx4dkeM29KXTM4u9udcSqcjdyagRY ColecoVision: https://paste.thec0de.com/?b27d8faddd47e30d#GSjpmhGAgM8b7A1DgSAxzHLjFBnNpfvpPNT11xk2bcou Gameboy: https://paste.thec0de.com/?998327cdad054899#HQ4AMs3rGZJazmyna56uBR7EFjmCKF1fsSinqM4j7ADc Gameboy Color: https://paste.thec0de.com/?870c7fffc696c9b3#HEBDXNDWiiCCZArCFXg9oVHrhNoe1o4s7rcY69hWATjC Lynx: https://paste.thec0de.com/?45753ac4bd645db2#4PQ5Q5kL41Yb3T6888dUaiz4KUszFZuW3hd5oNL4nGua N64: https://paste.thec0de.com/?a0c2b83f386a0363#H5NFkRkyS1pzBmtgRWNZYT4cyZTj95K7cruQqy66trcC NDS: https://paste.thec0de.com/?e7d211aac542b5db#BcqiRVPJbcPVRfUSG2qm1SQyziXJskvC9nTSoGELHUUn NES: https://paste.thec0de.com/?59113b373dce1b0b#H8fsxqudZXGSVYTnKgHN74AnCRG5jw4ydfi4JxvgY6M PCE: https://paste.thec0de.com/?df9c928fd0704207#2HASJKKRvbqdYBJ4dJuSp2or5pbhEioPNq8eidey9RPM PSX: https://paste.thec0de.com/?d3e0951e68e2e129#6nMDPzxFkWBYgYdvjL5DfZb8V1aBug83DdaTausKUaSq SegaCD: https://paste.thec0de.com/?cd2c90a4c17a9c09#EH8R3Ucnur955dtxZfAr6YTjenwnk65H9htQmWQ81LzH SegaGG: https://paste.thec0de.com/?df18ff4a4fb0b712#GhHPciE7bUChaij7wb4Pku9MdQS3D4Xcc5RWzbcYoD8S SegaMD: https://paste.thec0de.com/?077d6cf64b7459ce#9Gy7BGeQvtQJtbAJkrZk48g1sbte2UUfgSgeDQpTvLsv SegaSG: https://paste.thec0de.com/?45e65ad36aa24065#JAN69SHKyQ6vqrNRTrBh3UsZqDyf1E2TknZfWecWNKCM SegaSaturn: https://paste.thec0de.com/?c14b4168ec6850c1#9griTSMgD9mFDdPCedh3sLqxkjEyvR3x9uy8fg4WH6zM SNES: https://paste.thec0de.com/?a11bbcc8caa13fdb#C67JBVG3jj8WaiE9oJue4gR5QnqHfEbpVcALfnJVMAYZ VirtualBoy: https://paste.thec0de.com/?8e30c9da25cc0bd8#9wUME5o5QeASaptwXr7GV4mNLftThNSST1tLS6Xaik8H WonderSwan: https://paste.thec0de.com/?81872e333cf43aec#5pALWkmZQA5VBXzjS6YwqH84TBqUss1NKfc3tcBPk8jn

I've added a few missing logos and videos for a few Virtual Boy games that were missing (trying to complete this small collection so it's perfect for others!). I read on here that you must do some curl to an API for those new assets....I was hoping that step can be removed...or these sha files ... I have port 4001 open. Is there a way you can grab these automagically if we have the port open?

(These are using Privatebin on my site. Feel free to use this pastebin clone if you like!)

UPDATE: Refreshed the links as 99% of them expired in 1 week. Updated to never expire.

thelamer commented 10 months ago

I have more time slotted this weekend for this project will try to cut a release Sunday

thelamer commented 10 months ago

I added everything here in this commit will be cutting a release later today https://github.com/linuxserver/emulatorjs/commit/0eb869fed47c1b652805c713ce06988832579393 It looks large due to me now sorting the keys.

Also the in web interface uploading of assets is now functional in the latest image(an ipfs upgrade broke it before( all you need to do is customize your stuff in the webui by clicking on the rom in question and open port 4001 to the world on your container, the metadata will contain the CIDs needed to download the new media.