RSS still showing all entries with `all_entires: no`

I’m not sure if this is a bug or just an issue on my end, but with the following config:

        movie-rss-golden:
                priority: 16
                template: movie
                parsing:
                        movie: guessit
                imdb_lookup: yes
                rss:
                        url: '{? ptp.rss_1080_golden ?}'
                        all_entries: no

It seems like all_entries: no isn’t getting respected.

I’ll do a first run, and it will accept and success, but subsequent runs will produce output like

2020-08-27 06:17:38 VERBOSE  details       movie-rss-golden Produced 50 entries.

Which, I would expect it to produce 0 entries if run immediately after the first run.

This normally wouldn’t be a huge deal, but I’m running into https://github.com/Flexget/Flexget/issues/2701 which is causing the entire task to fail and it’s not grabbing new RSS entries.

Tested the provided config above, removing template: movie, it’s giving the expected output of 50 entries on the first run and 0 on subsequent runs.

Issue may be within the template: movie.

Could you please post the template as well as verify what version of Flexget you are running?

You can find the version of Flexget by executing flexget -V in the console.

Sure

       movie:
                qbittorrent:
                        path: /tank/downloads/movies/{{movie_name}} ({{movie_year}})/
                        label: movies
                        host: '{? qbittorrent.host ?}'
                        username: '{? qbittorrent.username ?}'
                        password: '{? qbittorrent.password ?}'
                if:
                        - checked == False: reject
                        - "'3D' in ptp_remaster_title|default('')": reject
                        - "'Workprint' in ptp_remaster_title|default('')": reject
                        - "'Trumpable' in ptp_remaster_title|default('')": reject
                        - "'Censored' in ptp_remaster_title|default('')": reject
                        - ptp_container != 'MKV': reject
                        - torrent_seeds == 0: reject
                        - "'tt0078789' in imdb_id and 'Redux' in ptp_remaster_title|default('')": reject # reject redux version of Apocalypse Now (search)
                        - "'tt0078788' in imdb_id and '/ Redux' in title": reject # reject redux version of Apocalypse Now (rss)
                        - "'tt0038650' in imdb_id and 'Colorized' in ptp_remaster_title|default('')": reject # reject color version of It's a Wonderful Life (search)
                        - "'tt0038650' in imdb_id and '/ Colorized' in title": reject # reject color version of It's a Wonderful Life (rss)
                        - "'tt0499549' in imdb_id and 'Extended Cut' not in title|default('')": reject # prefer extended cut of Avatar (search)
                        - "'tt0499549' in imdb_id and '/ Extended Cut' not in title": reject # prefer extended cut of Avatar (rss)
                list_add:
                        - <<: *trakt_collection
                list_remove:
                        - <<: *trakt_watchlist
                disable:
                        - seen
                        - seen_info_hash
                notify:
                        task:
                                template: html
                                via:
                                        - email:
                                                from: flexget@nastradamus.com
                                                to: 
                                                smtp_host: smtp.gmail.com
                                                smtp_port: 587
                                                smtp_username: 
                                                smtp_password: 
                                                smtp_tls: yes
                                                html: yes      

and I’m on 3.1.70

Edit: Now that I think about it, could disabling seen be the issue here?

No. The all_entries: no is separate to the seen plugin.

I just tested the provided above (removing notify and qbittorrent) and it worked fine. On that note you may want to remove your email just for privacy reasons.

Do you have anything in a global template?

I was just about to post my entire config and complete logs, but as soon as I ran it again I didn’t see the error. I’m utterly baffled, but I am very much appreciative of your help.

Not so fast, not sure how I avoided it just that once, but I’m seeing it again. Here’s all the details.

config

variables: variables.yml
templates:
        anchors:
                _ptp: &ptp
                        passthepopcorn:
                                username: '{? ptp.username ?}'
                                password: '{? ptp.password ?}'
                                passkey: '{? ptp.passkey ?}'
                _trakt_watchlist: &trakt_watchlist   
                        trakt_list:
                                account: '{? trakt.account ?}'
                                username: '{? trakt.username ?}'
                                list: watchlist
                                type: movies
                _trakt_collection: &trakt_collection   
                        trakt_list:
                                account: '{? trakt.account ?}'
                                username: '{? trakt.username ?}'
                                list: collection
                                type: movies

        movie:
                qbittorrent:
                        path: /tank/downloads/movies/{{movie_name}} ({{movie_year}})/
                        label: movies
                        host: '{? qbittorrent.host ?}'
                        username: '{? qbittorrent.username ?}'
                        password: '{? qbittorrent.password ?}'
                if:
                        - checked == False: reject
                        - "'3D' in ptp_remaster_title|default('')": reject
                        - "'Workprint' in ptp_remaster_title|default('')": reject
                        - "'Trumpable' in ptp_remaster_title|default('')": reject
                        - "'Censored' in ptp_remaster_title|default('')": reject
                        - ptp_container != 'MKV': reject
                        - torrent_seeds == 0: reject
                        - "'tt0078789' in imdb_id and 'Redux' in ptp_remaster_title|default('')": reject # reject redux version of Apocalypse Now (search)
                        - "'tt0078788' in imdb_id and '/ Redux' in title": reject # reject redux version of Apocalypse Now (rss)
                        - "'tt0038650' in imdb_id and 'Colorized' in ptp_remaster_title|default('')": reject # reject color version of It's a Wonderful Life (search)
                        - "'tt0038650' in imdb_id and '/ Colorized' in title": reject # reject color version of It's a Wonderful Life (rss)
                        - "'tt0499549' in imdb_id and 'Extended Cut' not in title|default('')": reject # prefer extended cut of Avatar (search)
                        - "'tt0499549' in imdb_id and '/ Extended Cut' not in title": reject # prefer extended cut of Avatar (rss)
                list_add:
                        - <<: *trakt_collection
                list_remove:
                        - <<: *trakt_watchlist
                disable:
                        - seen
                        - seen_info_hash
                notify:
                        task:
                                template: html
                                via:
                                        - email:
                                                from: flexget@nastradamus.com
                                                to:
                                                smtp_host: smtp.gmail.com
                                                smtp_port: 587
                                                smtp_username:
                                                smtp_password: 
                                                smtp_tls: yes
                                                html: yes


        movie-filter:
                template: movie
                parsing:
                        movie: guessit
                entry_list: search_results
                sort_by:
                        field: torrent_seeds
                        reverse: yes


        movie-clean-list:
                accept_all: yes
                priority: 1
                disable:
                        - seen
                        - seen_info_hash

        movie-clean-list-collection:
                template:
                        - movie-clean-list
                list_match:
                        from:
                                - <<: *trakt_collection
                        remove_on_match: no
                        action: reject


tasks:
        ########## MOVIES ##########

        # get watchlist movies from trakt
        movie-pull:
                priority: 2
                <<: *trakt_watchlist
                disable:
                        - seen
                        - seen_info_hash
                accept_all: yes
                list_add:
                        - movie_list: new

        ## Search ##
      
        # search for all movies, then filter results later
        movie-search:
                priority: 3
                disable:
                        - seen
                        - seen_info_hash
                imdb_lookup: yes # helps lookup matching
                list_clear: 
                        what:
                                - movie_list: search_results
                discover:
                        what:
                                - movie_list: new
                                - movie_list: sd
                                - movie_list: 720-any
                                - movie_list: 1080-any
                                - movie_list: 1080-remux
                        from:
                                - <<: *ptp
                        interval: 1 day
                        release_estimations: loose
                accept_all: yes
                list_add:
                        - entry_list: search_results


        ## Filter ##
        ## filter for movies ranked by following order:
        # 1. 1080p golden popcorn
        # 2. 1080p bluray (non-remux/scene)
        # 3. 1080p bluray remux
        # 4. 1080p any (webdl, scene, etc.)
        # 5. 720p any (webdl, scene, etc.)
        # 6. SD

        movie-filter-1080-golden:
                priority: 10
                template: 
                        - movie-filter
                if:
                        - ptp_resolution != '1080p': reject
                        - golden_popcorn == False: reject
                list_add:
                        - movie_list: 1080-golden
                list_match:
                        from:
                                - movie_list: new

        movie-filter-1080-bluray:
                priority: 11
                template: 
                        - movie-filter
                if:
                        - scene == True: reject
                        - "'Remux' in ptp_remaster_title|default('')": reject
                        - ptp_source != 'Blu-ray': reject
                        - ptp_resolution != '1080p': reject
                list_add:
                        - movie_list: 1080-bluray
                list_match:
                        from:
                                - movie_list: new
                                - movie_list: sd
                                - movie_list: 720-any
                                - movie_list: 1080-any
                                - movie_list: 1080-remux
        movie-filter-1080-remux:
                priority: 12
                template: 
                        - movie-filter
                if:
                        - scene == True: reject
                        - ptp_source != 'Blu-ray': reject
                        - ptp_resolution != '1080p': reject
                list_add:
                        - movie_list: 1080-remux
                list_match:
                        from:
                                - movie_list: new
                                - movie_list: sd
                                - movie_list: 720-any
                                - movie_list: 1080-any

        movie-filter-1080-any:
                priority: 13
                template: 
                        - movie-filter
                if:
                        - ptp_resolution != '1080p' and ptp_resolution != '1080i': reject
                list_add:
                        - movie_list: 1080-any
                list_match:
                        from:
                                - movie_list: new
                                - movie_list: sd
                                - movie_list: 720-any

        movie-filter-720-any:
                priority: 14
                template: 
                        - movie-filter
                if:
                        - ptp_resolution != '720p': reject
                list_add:
                        - movie_list: 720-any
                list_match:
                        from:
                                - movie_list: new
                                - movie_list: sd

        movie-filter-sd:
                priority: 15
                template: 
                        - movie-filter
                list_add:
                        - movie_list: sd
                list_match:
                        from:
                                - movie_list: new

        ## RSS ##
        # used for upgrading movies to golden popcorn
        movie-rss-golden:
                priority: 16
                template: movie
                parsing:
                        movie: guessit
                imdb_lookup: yes
                rss:
                        url: '{? ptp.rss_1080_golden ?}'
                        all_entries: no
                list_match:
                        from:
                                - movie_list: 1080-golden
                                - movie_list: 1080-bluray
                                - movie_list: 1080-remux
                                - movie_list: 720-golden
                                - movie_list: 1080-any
                                - movie_list: 720-any
                                - movie_list: sd
                        remove_on_match: no
                list_remove:
                        - movie_list: 1080-bluray
                        - movie_list: 1080-remux
                        - movie_list: 720-golden
                        - movie_list: 1080-any
                        - movie_list: 720-any
                        - movie_list: sd
                list_add:
                        - movie_list: 1080-golden


        ##  misc movie tasks

        # "rename" a movie list
        movie-rename-list:
                priority: 51
                disable:
                        - seen
                        - seen_info_hash
                movie_list: other-720
                list_match:
                        from:
                                - movie_list: other-720
                list_add:
                        - movie_list: 720-any

        # remove movies from movie-lists if no longer in trakt collections
        movie-clean-1080-golden:
                template: 
                        - movie-clean-list-collection
                movie_list: 1080-golden
                list_remove:
                        - movie_list: 1080-golden
        movie-clean-1080-bluray:
                template: 
                        - movie-clean-list-collection
                movie_list: 1080-bluray
                list_remove:
                        - movie_list: 1080-bluray
        movie-clean-1080-remux:
                template: 
                        - movie-clean-list-collection
                movie_list: 1080-remux
                list_remove:
                        - movie_list: 1080-remux
        movie-clean-720-golden:
                template: 
                        - movie-clean-list-collection
                movie_list: 720-golden
                list_remove:
                        - movie_list: 720-golden
        movie-clean-1080-any:
                template: 
                        - movie-clean-list-collection
                movie_list: 1080-any
                list_remove:
                        - movie_list: 1080-any
        movie-clean-720-any:
                template: 
                        - movie-clean-list-collection
                movie_list: 720-any
                list_remove:
                        - movie_list: 720-any
        movie-clean-sd:
                template: 
                        - movie-clean-list-collection
                movie_list: sd
                list_remove:
                        - movie_list: sd

        # remove movies from "new" if no longer in watchlist
        movie-clean-watchlist:
                template:
                        - movie-clean-list
                movie_list: new
                list_remove:
                        - movie_list: new
                list_match:
                        from:
                                - <<: *trakt_watchlist
                        remove_on_match: no
                        action: reject

schedules:
        # trakt cache kept for 2 hours
        # all tasks except rename
        - tasks: ['movie-filter-*', 'movie-clean-*', movie-pull, movie-search, 'movie-rss-*']
          interval:
                  hours: 3

First run (success): https://pastebin.com/hrNjfPbz
Second run (failure): https://pastebin.com/i7bru24z

Should this be reported as a bug?

One thing about all_entries: no is that it resets itself after every config change (to make sure things that may be allowed under new config are reconsidered.) Perhaps that’s what’s happening?