Quantcast
Channel: Forum - FlexGet - Latest topics
Viewing all 1890 articles
Browse latest View live

Hi, can somebody tell me what's wrong with my config?

$
0
0

@lptflex wrote:

And also, should I run flexget as a daemon or make a cronjob for it ? what's the best way?
web_server:
bind: 10.0.1.5
port: 80

templates:
tv:
exact: yes
propers: 3 days
download: /mnt/md0/Downloads/Torrent/Incomplete/
exists_series: /mnt/md0/Downloads/Torrent/Complete/
quality: 720p+
series:
- Outsiders
- South Park
- Elementary
- Curb Your Enthusiasm
- 60 Minutes US
- Baskets
- The Americans
- Jimmy Kimmel
- Panorama
- Vice
- The First 48
- Its Always Sunny In Philadelphia
- Snatch
- 11.22.63

transmission:
enabled: yes
host: 10.0.1.5
port: 8080
username: fetcher
password: secret
removewhendone: yes

tasks:
piratebay feed:
rss: https://thepiratebay.org/rss
template: tv

kickass feed:
rss: https://kickass.cd/usearch/720p/?rss=1
template: tv

eztv feed:
rss: eztv rss url (couldnt post links)
template: tv

bt-chat.com-tv:
rss: btchat url (couldnt post links)
template: tv

Thanks in advance !
Best Regards

Posts: 6

Participants: 3

Read full topic


ShowRSS - Flexget - Transmission [main file only, rename, move]

$
0
0

@tomatosmoothie wrote:

So basically, I have been searching for a decent recipe to do what I want, all I could find was old posts, way back when ShowRSS didn't let you add specific shows to download.

I would like to:
1) Download all the new episodes based on the RSS feed (Works fine)

2) Rename the main_file_only based on what the ShowRSS is giving out - that is what I meant by the old posts show a lookup, there is no need for TVDB,Trackt or IMDB. ShowRSS gives the SeriesName and SeriesID just fine - how do I know this, because the pushbullet notification shows the details perfectly (Not working based on the code below, pushbullet works fine)

3) Move the main_file_only(after it is renamed) to the parent download directory, not the series location

4) clean_up i.e. delete the folder and files within it that the TVShow downloads with and leave the renamed main_file_only

Pl. let me know if this is possible, The code below does not work.

    tasks:
      tv_show:
        rss: 'http://showrss.info/user/ID.rss?magnets=true&namespaces=true&name=null&quality=null&re=null'
        all_series: yes
        transmission:
          host: localhost
          port: 9091
          username: 'username'
          password: 'password'
          path: /media/usb1/torrent-complete
          main_file_only: yes
          content_filename: "{{series_name|replace(' ', '.')}}.{{series_id}}"
          rename_like_files: yes
          skip_files:
          - '*.nfo'
          - '*.sfv'
          - '*[sS]ample*'
          - '*.txt'
          include_files:
          - '*.mp4'
          - '*.avi'
          - '*.mkv'
          include_subs: no
          addpaused: no
        notify:
          entries:
            title: Downloading {{series_name}}
            message: Episode {{series_id}}
            via:
              - pushbullet:
                  api_key: yipeededoda
    schedules:
      - tasks: '*'
        interval:
           hours: 6

Posts: 1

Participants: 1

Read full topic

Flexget + traktv + RSS always reject

$
0
0

@najmudin94 wrote:

myconfig

templates:

Movies config

movies:

tmdb_lookup: yes

indent preformatted text by 4 spaces
entry_list: trakt-movies
trakt_list:
username: myusername
list: watchlist
type: movies
strip_dates: yes
accept_all: yes
list_add:
- movie_list: trakt-movies
quality: 1080p webdl+ !10bit !h265

deluge:
  #how long you seed the file when it is removed from torrent client
  ratio: 0.01
  removeatratio: yes
  #user pass
  username: admin
  password: admin
Common rejections

reject:

regexp:
  reject:
    - hardsub
    - \b(duo|tri|quadri|tetra|penta)logy\b: {from: title} # Block series, only accept one at a time
    - \b3-?D\b: {from: title}                             # I don't have any 3D displays
    - \btrailer\b: {from: title}                          # I've gotten a few trailers that matched as movies. VERY annoying
    - \bR5\b: {from: title}                               # The following are poor quality types that somehow got through the quality
    - \bWEBSCR\b: {from: title}                           # features usually due to the title including a keyword like "720p" as well
    - \bscreener\b: {from: title}
    - \bTS\b: {from: title}
    - \bCam\b: {from: title}
    - \bRAW\b: {from: title}
Disable builtins for some tasks

disable-seen-retry:

disable:
  - seen
  - seen_info_hash
  - retry_failed

tasks:
#this is task name
movie:
inputs:
- rss:
seen: local
template:
- movies
- disable-seen-retry

Posts: 2

Participants: 1

Read full topic

Flexget.com SSL certificate outdated

$
0
0

@tnt wrote:

Guys, in case nobody noticed, your site and forum certificates are outdated, therefore unreachable with Chrome:
The certificate expired on 3/18/17, 5:01 PM. The current time is 3/18/17, 7:18 PM.

Posts: 2

Participants: 2

Read full topic

E-Mail notifications and configure from text

$
0
0

@Loader23 wrote:

Hello,

I got two problems.
1. I can't get E-Mail notifications running. I simply don't get it. I have read the wiki but I don't understand where i have to put it. Its for a gmail account.
2. Is it possible to use configure_series from: text: - /input/input.txt ? So that all series are in one text file and everytime the schedule runs he looks in that text file?

Here is my config:

templates:
  tv:
    inputs:
        - rss: https://LINK
    accept_all: no
    exec:
      - echo text={{url}} >> "/input/container/finished/{{title}}.crawljob"
      - echo deepAnalyseEnabled=true >> "/input/container/finished/{{title}}.crawljob"
      - echo autoStart=TRUE >> "/input/container/finished/{{title}}.crawljob"
      - echo enabled=TRUE >> "/input/container/finished/{{title}}.crawljob"
      - echo forcedStart=TRUE >> "/input/container/finished/{{title}}.crawljob"
      - echo autoConfirm=TRUE >> "/input/container/finished/{{title}}.crawljob"
    series:
        1080p:
        - Awesome Series
        720p:
        -
tasks:
  Series:
    template: tv

Posts: 1

Participants: 1

Read full topic

Trying to understand task output

$
0
0

@haarts wrote:

I've created a silly task to get some series from a Trakt list and populate the series database. Behold:

tasks:
  sync-trakt-series:
    configure_series:
      from:
        trakt_list:
          username: foobar
          account: foorbar # required if list is not public
          list: watchlist
          type: shows
      settings:
        quality: 720p+
    exec: echo "Found {{title}}"

Assume this task ran successfully and the series database is populated:

$ flexget series list all

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqqqqqwqqqqqwqqqqqqqqqqqqwqqqqqqqqqqqqqqqk
x Name                       x Latest x Age x Downloaded x Identified By x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqnqqqqqqqqnqqqqqnqqqqqqqqqqqqnqqqqqqqqqqqqqqqu
x Colony (2016)              x -      x -   x -          x auto          x
x Legion (2017)              x -      x -   x -          x None          x
x The Big Bang Theory (2007) x -      x -   x -          x None          x
x The Expanse (2015)         x -      x -   x -          x None          x
x The Flash (2014)           x -      x -   x -          x None          x
x The Walking Dead (2010)    x -      x -   x -          x None          x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqvqqqqqqqqvqqqqqvqqqqqqqqqqqqvqqqqqqqqqqqqqqqj
Use `flexget series show NAME` to get detailed information

Now for the fun part, let's throw away Colony:

$ flexget series remove 'Colony (2016)'
Removed series `Colony (2016)` from database.

And display the list again to make sure Colony is gone:

$ flexget series list all

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqwqqqqqqqqwqqqqqwqqqqqqqqqqqqwqqqqqqqqqqqqqqqk
x Name                       x Latest x Age x Downloaded x Identified By x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqnqqqqqqqqnqqqqqnqqqqqqqqqqqqnqqqqqqqqqqqqqqqu
x Legion (2017)              x -      x -   x -          x None          x
x The Big Bang Theory (2007) x -      x -   x -          x None          x
x The Expanse (2015)         x -      x -   x -          x None          x
x The Flash (2014)           x -      x -   x -          x None          x
x The Walking Dead (2010)    x -      x -   x -          x None          x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqvqqqqqqqqvqqqqqvqqqqqqqqqqqqvqqqqqqqqqqqqqqqj

All good!
Now I rerun the original task:

$ flexget execute --task 'sync-trakt-series'
2017-03-19 21:14 VERBOSE  task_queue                    There are 1 tasks to execute. Shutdown will commence when they have completed.
2017-03-19 21:14 VERBOSE  input_cache   sync-trakt-series Restored 6 entries from db cache
2017-03-19 21:14 WARNING  details       sync-trakt-series Task didn't produce any entries. This is likely due to a mis-configured or non-functional input.
2017-03-19 21:14 VERBOSE  details       sync-trakt-series Summary - Accepted: 0 (Rejected: 0 Undecided: 0 Failed: 0)

Running flexget series list all shows Colony again. So why does the output tell me Task didn't produce any entries.? The next line also prints 'Accepted: 0' etc etc. What's up?

Best!

Posts: 2

Participants: 2

Read full topic

list_match not making any decisions on entries

$
0
0

@tubedogg wrote:

I have the below config. I have a list set up on Trakt that has episodes in it (not shows). I have an RSS feed that has episodes of shows in it. list_match is downloading the list from Trakt, but is either not attempting to match or for some reason isn't finding matches. (There's only one line in the log from list_match and it's about downloading the list.) I have manually created both the Trakt list and the RSS feed to have matching items, so I'm at a loss.

If I'm understanding the code correctly, it should be trying to match on season number and episode number, both of which are present in the entry dump.

(I know there are no outputs. Trying to get this part working first.)

Config:

  rss_test_btn_missing:
    disable: [seen]
    list_match:
      from:
        - trakt_list:
            account: '{? trakt.account ?}'
            list: 'missing episodes'
            type: episodes
      remove_on_match: no
      action: accept
    inputs:
      - rss: 'http://plex/testrss.rss'
    all_series:
      parse_only: yes

Debug log: http://pastebin.com/MYVwrQe5

Posts: 3

Participants: 2

Read full topic

Move Plugin and imdb_lookup Problem

$
0
0

@Facundo_Liston wrote:

Hi!

I have a rpi with flexget installed and functioning since a year, never a problem.
Recently a shortcut burn my rpi so i have to do everything again.
Now, imdb_lookup fails because does't found anything, and the move plugin freezes with the first movie he tries.

Now i'm tryng with thetvdb and tmdb.

Suggestions?

templates:

  torrent:
    transmission:
      host: XXX
      port: XXX
      username: XXX
      password: XXX
    clean_transmission:
      host: XXX
      port: XXX
      username: XXX
      password: XXX
      finished_for: 12 hours
      min_ratio: 2

tasks:

  tv_show:
    priority: 1
    rss: XXX
    seen: local
    all_series: yes
    template: torrent

  movies_yify:
    priority: 2
    rss: XXX
    seen: local
    accept_all: yes
    list_add:
      - movie_list: movies
    template: torrent


  sort-tvseries:
    priority: 3
    filesystem:
      path: /home/pi/NAS/Downloads/complete
      regexp: '.*\.(mkv|mp4|m4v|avi)$'
      recursive: yes
    seen: local
    regexp:
      reject:
        - sample
    metainfo_series: yes
    thetvdb_lookup: yes
    require_field: tvdb_series_name
    accept_all: yes
    move:
      to: '/home/pi/NAS/TV Shows/{{tvdb_series_name}}/Season {{tvdb_season}}'
      rename: '{{tvdb_series_name}} {{tvdb_season|pad(2)}}x{{tvdb_episode|pad(2)}} - {{tvdb_ep_name}}'
      clean_source: 40
    list_add:
      - subtitle_list:
          list: subs_series
          recursion_depth: 2

  sort-movies:
    priority: 4
    filesystem:
      path: /home/pi/NAS/Downloads/complete
      regexp: '.*\.(mkv|mp4|m4v|avi)$'
      recursive: yes
    seen: local
    accept_all: yes
    metainfo_series: yes
    tmdb_lookup: yes
    regexp:
      reject:
        - sample
    require_field: tmdb_name
    list_match:
      from:
        - movie_list: movies
    move:
      to: '/home/pi/NAS/Movies/{{tmdb_name}} ({{tmdb_year}})'
      rename: '{{tmdb_name}} ({{tmdb_year}})'

      clean_source: 40
    list_add:
      - subtitle_list:
          list: subs_movies
          recursion_depth: 2

  download-subtitles-series:
    priority: 5
    disable: [retry_failed]
    no_entries_ok: yes
    subtitle_list:
      list: subs_series
      recursion_depth: 2
    list_match:
      from:
        - subtitle_list:
            list: subs_series
    subliminal:
      languages:
        - eng
        - spa
      providers:
        - addic7ed
        - opensubtitles
        - podnapisi
        - tvsubtitles
      single: yes
      exact_match: no

  download-subtitles-movies:
    priority: 6
    disable: [retry_failed]
    no_entries_ok: yes
    subtitle_list:
      list: subs_movies
      recursion_depth: 2
    list_match:
      from:
        - subtitle_list:
            list: subs_movies
    subliminal:
      languages:
        - eng
        - spa
      providers:
        - addic7ed
        - opensubtitles
        - podnapisi
        - tvsubtitles
      single: yes
      exact_match: no


schedules:
  - tasks: '*'
    interval:
      hours: 6

Posts: 1

Participants: 1

Read full topic


TVmaze: mark episode as acquired

$
0
0

@shotfirer wrote:

Is it possible to add functionality to mark accepted episodes as acquired an TVmaze via API call? Thank you.

Posts: 7

Participants: 2

Read full topic

Problem with imdb and my movie config

$
0
0

@steve51184 wrote:

Hi I'm getting this error on my movie config:

2017-03-21 12:50 WARNING input_cache queue_from_imdb Input imdb_watchlist did not return a list, cannot cache.
2017-03-21 12:50 WARNING details queue_from_imdb Task didn't produce any entries. This is likely due to a mis-configured or non-functional input.

This is my config: http://pastebin.com/raw/k6YhFCag

Any help would be great thanks

On Linux Debian 7, Flexget version: 2.6.0

Posts: 3

Participants: 2

Read full topic

Serie not recognized

$
0
0

@Loader23 wrote:

Hi,

this serie is not recognized:

series:
    1080p:
        - 24 Legacy

Other series are working fine. Are there other ways how i could write it? When i execute the task with --verbose the entry is listed as "undecided"

Posts: 29

Participants: 4

Read full topic

Permission denied problem crashes move plugin

Problem with trakt and next_series_episode

$
0
0

@tuccio wrote:

I've just installed flexget and trying to get it to download series I add to some trakt list using transmission. Most of the configs I've found seemed too complicated for my task, so I'm trying to do a simple one, following the examples I've found, but I can't get around this error:

2017-03-23 00:50 VERBOSE  next_series_episodes get-shows       Series `Better Call Saul, Black Mirror, The IT Crowd` with identified_by value `auto` are not supported.

Although I would also appreciate suggestions of "pre-cooked" configs I could use, I'd like to fix the issue, so I'll post the full config and the log as well

variables: variables.yml

templates:
  tv_series:
    configure_series:
      settings:
        quality: 720p+
        path: '{? series.path ?}/{{series_name}}/Season {{series_season}}/'
      from:
        trakt_list:
          account: '{? trakt.account ?}'
          list: '{? trakt.series.list ?}'
          strip_dates: yes
          type: shows

  torrent_download:
    transmission:
      port: 9091
      username: '{? torrent.username ?}'
      password: '{? torrent.password ?}'

tasks:

  get-shows:

    template: tv_series
    discover:
      what:
        - next_series_episodes:
            from_start: yes
      from:
        - rarbg:
            category: [ 41 ]
    transmission:
      host: localhost
      port: 9091
      username: '{? torrent.username ?}'
      password: '{? torrent.password ?}'

  get-subtitles:
    filesystem:
      path:
        - '{? subs.path ?}'
      regexp: '.*\.(avi|mkv|mp4)$'  # only include filenames with these extensions
      recursive: yes
    accept_all: yes
    seen: local                     # seen shouldn't interfer with anything outside this subtitles task
    subliminal:
      languages:
        - eng
      alternatives:
        - ita
      exact_match: no
      providers: [addic7ed, opensubtitles, tvsubtitles]
      single: no
      hearing_impaired: no
      authentication:
        addic7ed:
          username: '{? subs.addic7ed.username ?}'
          password: '{? subs.addic7ed.password ?}'
        opensubtitles:
          username: '{? subs.opensubtitles.username ?}'
          password: '{? subs.opensubtitles.password ?}'

schedules:
  - tasks: [get-shows, get-subtitles]
    interval:
      minutes: 30

(flexget) osmc@davide-rpi:~/flexget$ flexget execute --discover-now --no-cache
2017-03-23 00:49 WARNING  manager                       Your locale declares ascii as the filesystem encoding. Any plugins reading filenames from disk will not work properly for filenames containing non-ascii characters. Make sure your locale env variables are set up correctly for the environment which is launching FlexGet.
2017-03-23 00:50 VERBOSE  task_queue                    There are 1 tasks to execute. Shutdown will commence when they have completed.
2017-03-23 00:50 VERBOSE  filesystem    get-subtitles   Starting to scan folders.
2017-03-23 00:50 VERBOSE  filesystem    get-subtitles   Scanning folder /media/storage/kodi. Recursion is set to True.
2017-03-23 00:50 WARNING  details       get-subtitles   Task didn't produce any entries. This is likely due to a mis-configured or non-functional input.
2017-03-23 00:50 VERBOSE  details       get-subtitles   Summary - Accepted: 0 (Rejected: 0 Undecided: 0 Failed: 0)
2017-03-23 00:50 VERBOSE  trakt_list    get-shows       Retrieving `shows` list `series`
2017-03-23 00:50 VERBOSE  next_series_episodes get-shows       Series `Better Call Saul, Black Mirror, The IT Crowd` with identified_by value `auto` are not supported.
2017-03-23 00:50 WARNING  discover      get-shows       Input next_series_episodes did not return anything
2017-03-23 00:50 VERBOSE  discover      get-shows       Discovering 0 titles ...
2017-03-23 00:50 INFO     discover      get-shows       Ignoring interval because of --discover-now
2017-03-23 00:50 VERBOSE  details       get-shows       Task didn't produce any entries.
2017-03-23 00:50 VERBOSE  details       get-shows       Summary - Accepted: 0 (Rejected: 0 Undecided: 0 Failed: 0)

Posts: 4

Participants: 3

Read full topic

Question about copy-episodes timing

$
0
0

@posternutbag wrote:

I'm currently using flexget on a seedbox (run periodically by a cron job) to download shows from rss feeds, copy them to another folder after downloading (to hold for me to download them to my local computer), and get subtitles. I also use rtorrent and have my default ratio group set to remove torrents after uploading 200%. This works for the most part, but occasionally I run into problems. For example, popular episodes of shows often upload 200% and are removed before flexget is able to run again and copy them to my 'holding' folder. I was thinking of just increasing the frequency that I run my flexget tasks, but I'm wondering if flexget will try to copy files that aren't completely downloaded. It seems like a balancing act trying to copy files after they are fully downloaded but while they are still on the system. If anyone has any suggestions for how to resolve this, I'd really appreciate it. Thanks!

Posts: 4

Participants: 3

Read full topic

Seen with custom fields

$
0
0

@tubedogg wrote:

The wiki entry for seen says, in part:

By default, seen plugin will filter entries based on that following fields: title, url & original_url. You can choose to override this by using the plugin as such:

seen:
  fields:
    - url
    - title
    - any other field name

The problem is, no other field (except original_url) works. I have tried using series_name, and the series_name isn't being recorded in the seen database, despite being present in the entry when it's downloaded. After looking through seen.py, it seems like all it's ever designed to save is url, title, and original_url.

Am I wrong? Or by "any other field name", does the wiki just mean original_url?

Posts: 3

Participants: 2

Read full topic


Pushbullet template

$
0
0

@effemmeffe wrote:

In my config I have this template:

  pushbullet:
    notify:
      entries:
        title: "[flexget] {{task}}"
        message: "{{title}}"
        via:
          - pushbullet:
              api_key: "{? pushbullet.api ?}"

What exactly is that "{{title}}" in the message body?

Posts: 2

Participants: 2

Read full topic

Identify episodes not listed as SxxExx

$
0
0

@effemmeffe wrote:

Big little lies episodes are not released as Big.little.lies.s01e01, but they are released as Big.little.lies.part.1
Maybe this is why episodes are not found and the show is some episodes behind in my config.
Is there some way to have flexget recognize this episodes?

Posts: 2

Participants: 2

Read full topic

New email/notify failing intermittantly

$
0
0

@calisro wrote:

With the new notify / email plugin we can specify to run the notify at the entry or the task level. If we select the entry level, we see multiple emails per task which is totally expected and what we want. The plugin, however, seems to do multiple logons/logoffs for each entry into the mail servers. This causes messages to fail because most email providers throttle the logon/logoff and the simultaneous connections.

This is an example of the intermittent errors. The error message is an authentication failure but it is really a throttling problem.

2017-03-23 14:26 VERBOSE details test-Watchlist-LQ Summary - Accepted: 6 (Rejected: 0 Undecided: 0 Failed: 0)
2017-03-23 14:26 VERBOSE notify test-Watchlist-LQ Successfully sent a notification to email
2017-03-23 14:26 VERBOSE notify test-Watchlist-LQ Successfully sent a notification to email
2017-03-23 14:26 VERBOSE notify test-Watchlist-LQ Successfully sent a notification to email
2017-03-23 14:26 ERROR notify_entry test-Watchlist-LQ (534, '5.7.9 Please log in with your web browser and then try again. Learn more at\n5.7.9 https://support.google.com/mail/?p=WebLoginRequired p204sm2042179itp.19 - gsmtp')
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/notifiers/notify.py", line 103, in send_notification
send_notification(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/notifiers/notification_framework.py", line 117, in send_notification
notifier.notify(title, message, rendered_config) # TODO: Update notifiers for new api
File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/notifiers/email.py", line 143, in notify
text_to_native_str(config['smtp_password']))
File "/usr/lib/python2.7/smtplib.py", line 622, in login
raise SMTPAuthenticationError(code, resp)
SMTPAuthenticationError: (534, '5.7.9 Please log in with your web browser and then try again. Learn more at\n5.7.9 https://support.google.com/mail/?p=WebLoginRequired p204sm2042179itp.19 - gsmtp')
2017-03-23 14:26 VERBOSE notify test-Watchlist-LQ Successfully sent a notification to email
2017-03-23 14:26 VERBOSE notify test-Watchlist-LQ Successfully sent a notification to email
2017-03-23 14:26 VERBOSE list_add test-Watchlist-LQ adding accepted entries into movie_list - movie_low

i've done some testing with the python code and if the connection isn't closed and if we reuse that connection for the larger batches of emails, then we will be far less likely to hit throttling limits. My suggestion would be that within a task we open one connection and then close it after the task EVEN if 'entries' are selected. Once the connection is open, we can send multiple messages for each entry.

Posts: 2

Participants: 2

Read full topic

Unhandled error in plugin transmission: 'utf8'

$
0
0

@sean3589 wrote:

When running flexget (cli) it finds and downloads all of the torrents from my RRS feed, then throws this error:

CRITICAL task task-a BUG: Unhandled error in plugin transmission: 'utf8' codec can't decode byte 0x96 in position 0: invalid start byte

running flexget check it passes

Here be me yml

tasks:
task-a:
rss: https://revolutiontt.me/rss.php?feed=dl&bookmarks=on&passkey=*********
accept_all: yes
transmission:
host: 172.16..
port: 51413
username: *****
password: ****
download: /volume1/Torrents/Torrents/

schedules:
- tasks: 'task-a'
interval:
minutes: 15

Posts: 3

Participants: 2

Read full topic

re_replace not including backreferences in replaced string

$
0
0

@tubedogg wrote:

I have the following included in a notification template:

{{entry.title|re_replace('(.*?)\s\-\sS(\d{2,4})E(\d{2,3})\s\[.*','\1 - s\2e\3')}}

Example title:

Arrow - S05E17 [ 2017 ] [ MKV | H.264 | WEBRip | 720p | FastTorrent ] [ Uploader: Anonymous ]  [ Arrow.S05E17.Kapiushon.720p.AMZN.WEBRip.DD5.1.x264 ]

{{entry.title}}, without any filters on it, returns the full title. Once I apply the above filter, the result is the following string every time:

 - se

(i.e. the replacement string without the backreferences.)

I know the regex is correct for multiple reasons. For one, I tested it in an online Python regex checker. For two, if I remove .* at the end of the regex, the resulting title is this:

 - se 2017 ] [ MKV | H.264 | WEBRip | 720p | FastTorrent ] [ Uploader: Anonymous ]  [ Arrow.S05E17.Kapiushon.720p.AMZN.WEBRip.DD5.1.x264-CasStudio ]

Meaning, it is correctly matching Arrow - S05E17 [ and trying to replace it with the replacement string. But the backreferences in the replacement string aren't replaced.

I thought maybe it had something to do with the whole template thing, so I tried using set to create a field called fixed_title from the title:

    set:
      fixed_title: '{{title|re_replace("(.*?)\s\-\sS(\d{2,4})E(\d{2,3})\s\[.*","\1 - s\2e\3")}}'

and then call {{show_title}} in the template. That resulted in the same thing as above.

What am I doing wrong?

Posts: 2

Participants: 1

Read full topic

Viewing all 1890 articles
Browse latest View live