pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.81k stars 278 forks source link

Cutome search template not saving #11038

Open kalamataz opened 2 years ago

kalamataz commented 2 years ago

Describe the bug When trying to add a custom search template it is never saved

To Reproduce Steps to reproduce the behavior:

  1. Go to Show
  2. Click on Edit
  3. Click on Search Templates
  4. Scroll down to Custom Templates
  5. Create a custom search template e.g %RG %Q.N %0E
  6. Click add exception

Expected behavior For the custom template to be saved and used and persisting after refresh

Screenshots

1 Now on refreshing it is not saved 2

Medusa (please complete the following information):

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

``` 2022-11-20 10:25:10 INFO Thread-4 :: [e4b480c] ReleaseGroups: [] 2022-11-20 10:25:10 INFO Thread-4 :: [e4b480c] ReleaseGroups: Chainsaw Man 2022-11-20 10:24:57 INFO APIv2-Thread :: [e4b480c] Building internal name cache for Chainsaw Man 2022-11-20 10:24:57 INFO APIv2-Thread :: [e4b480c] Finished processing 3983 scene exceptions. 2022-11-20 10:24:57 INFO APIv2-Thread :: [e4b480c] Updating exception_cache and exception_season_cache 2022-11-20 10:24:57 INFO APIv2-Thread :: [e4b480c] Finished processing 0 scene exceptions. 2022-11-20 10:24:57 INFO APIv2-Thread :: [e4b480c] Updating exception_cache and exception_season_cache 2022-11-20 10:24:57 INFO APIv2-Thread :: [e4b480c] Updating scene exceptions... 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] My Hero Academia S6 - 06 [English Dub] [WEB-DL 1080p] [4465065B].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Chainsaw Man - 01 [English Dub] [WEB-DL 1080p] [12B9AEB3].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Chainsaw Man - 04 [English Dub] [WEB-DL 1080p] [33A79FB8].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Chainsaw Man - 03 [English Dub] [WEB-DL 1080p] [A28C5194].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Chainsaw Man - 02 [English Dub] [WEB-DL 1080p] [0872DCFE].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Chainsaw Man - 01 [English Dub] [WEB-DL 1080p] [12B9AEB3].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 06 [1080p HEVC][266CB851].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 06 [1080p HEVC][266CB851].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 06 [1080p HEVC][266CB851].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 06 [1080p HEVC][266CB851].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 06 [1080p HEVC][266CB851].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 06 [1080p HEVC][266CB851].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 03 [1080p HEVC][9D576E01].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 06 [1080p HEVC][266CB851].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 05 [1080p HEVC][E06C6019].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 04 [1080p HEVC][0180DF92].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 03 [1080p HEVC][9D576E01].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 02 [1080p HEVC][C4798A48].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[ASW] Mobile Suit Gundam - The Witch from Mercury - 01v2 [1080p HEVC][B3D444BD].mkv] using state: [pausedUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 03 (1080p) [E9E9431C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 04 (1080p) [391C1616].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 04 (1080p) [391C1616].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 02 (1080p) [1CAC0744].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 03 (1080p) [E9E9431C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 03 (1080p) [E9E9431C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 02 (1080p) [1CAC0744].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Made in Abyss - The Golden City of the Scorching Sun - 12 [English Dub] [WEB-DL 1080p] [35785A1D].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Made in Abyss - The Golden City of the Scorching Sun - 12 [English Dub] [WEB-DL 1080p] [35785A1D].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Made in Abyss - The Golden City of the Scorching Sun - 12 [English Dub] [WEB-DL 1080p] [35785A1D].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 03 (1080p) [E9E9431C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 05 (1080p) [5D2B3C41].mkv] using state: [stalledUP] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[LostYears] Made in Abyss - S02E07 (WEB 1080p x265 10-bit AAC E-AC-3) [464F9648].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[LostYears] Made in Abyss - S02E07 (WEB 1080p x265 10-bit AAC E-AC-3) [464F9648].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 04 (1080p) [391C1616].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 03 (1080p) [E9E9431C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 02 (1080p) [1CAC0744].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 02 (1080p) [1CAC0744].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 04 (1080p) [391C1616].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 04 (1080p) [391C1616].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 03 (1080p) [E9E9431C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 02 (1080p) [1CAC0744].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[SubsPlease] Mobile Suit Gundam - The Witch from Mercury - 01v2 (1080p) [8BFBC214].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[LostYears] Danmachi - S04E07 (WEB 1080p Hi10P AAC E-AC-3) [AD773E9F].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 17 [English Dub] [WEB-DL 1080p] [835528B6].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] My Hero Academia S6 - 05 [English Dub] [WEB-DL 1080p] [776A50D3].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Made in Abyss - The Golden City of the Scorching Sun - 11 [English Dub] [WEB-DL 1080p] [96C04DA4].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] Made in Abyss - The Golden City of the Scorching Sun - 07 [English Dub] [WEB-DL 1080p] [DE810095].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[LostYears] SPY x FAMILY - S01E10 (WEB 1080p HEVC AAC E-AC-3) [33018E55].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 16 [English Dub] [WEB-DL 1080p] [E2233DFB].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 15 [English Dub] [WEB-DL 1080p] [FD2E6A06].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 14 [English Dub] [WEB-DL 1080p] [BFD06AD1].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 13 [English Dub] [WEB-DL 1080p] [25E90597].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 12 [English Dub] [WEB-DL 1080p] [B5A238BF].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 11 [English Dub] [WEB-DL 1080p] [CCA8A65C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 09 [English Dub] [WEB-DL 1080p] [1D5F2F4F].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 08 [English Dub] [WEB-DL 1080p] [B4FFCC8C].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 07 [English Dub] [WEB-DL 1080p] [77C256EC].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 06 [English Dub] [WEB-DL 1080p] [E31BEA6A].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 05 [English Dub] [WEB-DL 1080p] [48151887].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 04 [English Dub] [WEB-DL 1080p] [CEAE61CB].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 03 [English Dub] [WEB-DL 1080p] [1AA37840].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 02 [English Dub] [WEB-DL 1080p] [78AB12EC].mkv] using state: [missingFiles] 2022-11-20 10:21:54 INFO DOWNLOADHANDLER :: [e4b480c] Qbittorrent torrent: [[Yameii] SPY x FAMILY - 01 [English Dub] [WEB-DL 1080p] [8E74D61E].mkv] using state: [missingFiles] ```

Additional context Add any other context about the problem here.

crxed9 commented 2 years ago

https://github.com/pymedusa/Medusa/issues/11024

Mika3578 commented 1 year ago

In Pymedusa Logs the search query don't respect the custom search templates format who has been set. ex : %SN.%E.N in setting -> in the log medusa always add the S%0SE%0E string who isn't desired format to match with provider releases Is a way to force medusa to stricly respect the setting in custom search templates? and send the desired querys to search providers? Thanks

zeroquinc commented 1 year ago

Same issue here, it's always searching for a string I didn't enter. It never saves the custom template. Sadly unusable for me at this point cause it finds nothing in Dutch.

Custom template needs to search for: Vandaag Inside - S03E45 But instead searches for: Vandaag Inside - S03E45 - Episode 45, and I can't remove Episode 45 at the end.

Please please fix this