ZeroQI / Lambda.bundle

Local Media Export, a reverse Plex 'Local Media Assets' agent to export metadata locally
GNU General Public License v3.0
134 stars 18 forks source link

Export artist_poster.ext to the artist folder instead of the album folder #31

Open jazzsnobeatcake opened 3 years ago

jazzsnobeatcake commented 3 years ago

Hi, thanks for the plugin. I got it to work after some trial and error. The last export I need to run involves the artist picture from my music library. I want the pictures to end up like this:

`music/

artist one/

    1999 - album one

    2003  - album two

    ...

    folder.ext

artist two/

    1981 - another album

    ...

    folder.ext

`

Right now, they end up in the album folders instead of the artist folder. This leads to duplicates and tricks playback software into choosing folder.jpg over cover.jpg, which already exist for every one of my albums. Is it possible to make Lambda export the artist poster to the artist folder? I assume I'd have to enable the Lambda agent under Artists/Lastfm instead of Albums/Lastfm but there is no such checkbox.

Thanks and let me know if you need logs or clarification.

ZeroQI commented 3 years ago

I have never tested the audio part nor used Plex for music... if there is a relative path composed of two or more folders, it would make sense to put the artist pic in the parent one https://github.com/ZeroQI/Lambda.bundle/blob/master/Contents/DefaultPrefs.json

https://github.com/ZeroQI/Lambda.bundle/blob/master/Contents/Code/__init__.py lines 610-646 for music part

jazzsnobeatcake commented 3 years ago

Hey, thanks for the quick response. I edited line 599-601 and 631-632 in Code/init.py but haven't had any luck getting the export running. I doubt that it's the code changes you suggested, I had trouble getting the regular release to run too. I'll try again, probably not before wednesday though (work obligations).

Can you give me the official rundown on how to get this started? I definetly had it running once, when Lambda exported the artist poster to my album folders. I currently have Lambda enabled under Agents/Albums/Last.fm and set it to ignore everything except artist_poster (set to folder.ext), collection folder set to root and metadata source set to plex. Hitting refresh all metadata on my music library should trigger the export process, correct?