daps icon indicating copy to clipboard operation
daps copied to clipboard

Labelarr Caching (?) Issue

Open rothnd opened this issue 2 months ago • 0 comments

I use multiple labels but I see this issue with 2 primarily 'notyetorganizedboth' and 'notyetorganizedme'. The issue is that when an item is tagged with -both and then I want to switch it to -me two runs of labelarr are required to make the change complete. The first run adds -me label, the second run removes -both label. Debug logs of first run which adds -me label:

********************* LABELARR Version: 2.0.3.master1873 *********************

10/29/25 01:53:18 PM DEBUG: 
______________________________________________________________________________
|                              Script Settings                               |
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
10/29/25 01:53:18 PM DEBUG: 
labelarr:
  log_level: debug
  dry_run: false
  mappings:
  - app_type: radarr
    app_instance: radarr_1
    labels:
    - away
    - concerts
    - dc
    - mywatchlist
    - nextup
    - sequelrelated
    - truecrime
    plex_instances:
    - instance: plex_1
      library_names:
      - Movies
      - Movies Other
  - app_type: sonarr
    app_instance: sonarr_1
    labels:
    - away
    - completedshuffleworthy
    - matemp
    - mamashows
    - marvel
    - myshows
    - myshowsother
    - mytemp
    - mywatchlist
    - nextup
    - notyetorganizedboth
    - notyetorganizedme
    - sequelrelated
    - shorts
    - starwars
    - truecrime
    - watchlist
    plex_instances:
    - instance: plex_1
      library_names:
      - TV
      - TV Other
  - app_type: radarr
    app_instance: radarr_2
    labels:
    - away
    - concerts
    - dc
    - fel
    - mel
    - mywatchlist
    - nextup
    - sequelrelated
    - truecrime
    plex_instances:
    - instance: plex_1
      library_names:
      - Movies
      - Movies Other
  notifications:
    notifiarr:
      webhook: https://notifiarr.com/api/v1/notification/passthrough/xxxx
      channel_id: '####'

10/29/25 01:53:18 PM DEBUG: 
------------------------------------------------------------------------------
10/29/25 01:53:49 PM INFO: Syncing labels [away, completedshuffleworthy, matemp, mamashows, marvel, myshows, myshowsother, mytemp, mywatchlist, nextup, notyetorganizedboth, notyetorganizedme, sequelrelated, shorts, starwars, truecrime, watchlist] from Sonarr instance 'sonarr_1' to Plex instance 'plex_1'
10/29/25 01:53:55 PM DEBUG: Matched 'Task' (2025) using TVDB+IMDB MATCH: TVDB 451873 & IMDB tt28013708 to 'Task' (2025) 
______________________________________________________________________________
|                                  Results                                   |
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
10/29/25 01:54:25 PM INFO: 
Label: notyetorganizedboth has been removed from:
10/29/25 01:54:25 PM INFO:   - Task (2025)
10/29/25 01:54:25 PM INFO: 
Label: notyetorganizedme has been added to:
10/29/25 01:54:25 PM INFO:   - Task (2025)
10/29/25 01:54:25 PM DEBUG: [Notification] Queued notifiarr via Apprisse
10/29/25 01:54:25 PM INFO: [Notification] ✅ Notifiarr notification sent.
10/29/25 01:54:25 PM INFO: 
*********************** LABELARR | Run Time: 0h 1m 7s ************************```

Debug logs of second run which removes -both label: 

10/29/25 01:56:59 PM INFO: ********************* LABELARR Version: 2.0.3.master1873 *********************

10/29/25 01:56:59 PM DEBUG:


| Script Settings | ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ 10/29/25 01:56:59 PM DEBUG: labelarr: log_level: debug dry_run: false mappings:

  • app_type: radarr app_instance: radarr_1 labels:
    • away
    • concerts
    • dc
    • mywatchlist
    • nextup
    • sequelrelated
    • truecrime plex_instances:
    • instance: plex_1 library_names:
      • Movies
      • Movies Other
  • app_type: sonarr app_instance: sonarr_1 labels:
    • away
    • completedshuffleworthy
    • matemp
    • mamashows
    • marvel
    • myshows
    • myshowsother
    • mytemp
    • mywatchlist
    • nextup
    • notyetorganizedboth
    • notyetorganizedme
    • sequelrelated
    • shorts
    • starwars
    • truecrime
    • watchlist plex_instances:
    • instance: plex_1 library_names:
      • TV
      • TV Other
  • app_type: radarr app_instance: radarr_2 labels:
    • away
    • concerts
    • dc
    • fel
    • mel
    • mywatchlist
    • nextup
    • sequelrelated
    • truecrime plex_instances:
    • instance: plex_1 library_names:
      • Movies
      • Movies Other notifications: notifiarr: webhook: https://notifiarr.com/api/v1/notification/passthrough/xxxx channel_id: '####'

10/29/25 01:56:59 PM DEBUG:

10/29/25 01:57:29 PM INFO: Syncing labels [away, completedshuffleworthy, matemp, mamashows, marvel, myshows, myshowsother, mytemp, mywatchlist, nextup, notyetorganizedboth, notyetorganizedme, sequelrelated, shorts, starwars, truecrime, watchlist] from Sonarr instance 'sonarr_1' to Plex instance 'plex_1' 10/29/25 01:57:35 PM DEBUG: Matched 'Task' (2025) using TVDB+IMDB MATCH: TVDB 451873 & IMDB tt28013708 to 'Task' (2025)


| Results | ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ 10/29/25 01:58:04 PM INFO: Label: notyetorganizedboth has been removed from: 10/29/25 01:58:04 PM INFO: - Task (2025) 10/29/25 01:58:04 PM DEBUG: [Notification] Queued notifiarr via Apprisse 10/29/25 01:58:05 PM INFO: [Notification] ✅ Notifiarr notification sent. 10/29/25 01:58:05 PM INFO: *********************** LABELARR | Run Time: 0h 1m 6s ************************```

I know you're busy, probably won't get to something like this for a long time, all good, just wanted to 'get it on record' for whenever ;)

rothnd avatar Oct 29 '25 18:10 rothnd