[FeedScript] ImdbWatchlist - RSS with IMDb integration

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Microx
Posts: 10
Joined: 17 Aug 2013, 20:33

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by Microx » 17 Dec 2018, 12:26

Hi silhouette.
I have attached the latest version 1.2 (March 2017) that dealt with an issue with NZBGeek.
I hope you'll be able to workaround the IMDb RSS shutdown and make this script great again :)
ImdbWatchlist version 1.2 tested .zip
(2.38 KiB) Downloaded 31 times

silhouette
Posts: 14
Joined: 12 Dec 2018, 08:34

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by silhouette » 19 Dec 2018, 15:23

I am trying to make sense of the script.

In spite of googling, there is one line that I cannot make sense of:

save_rssfeed(rssfeed_file if not out_file else out_file, filtered_feed)

I realize that it saves the feed but I cannot follow the logic. filtered_feed must be passed to NzbGet. What is the purpose of rssfeed_file and out_file.

Can you please explain the entire logic and purpose of this line?

hugbug
Developer & Admin
Posts: 7418
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by hugbug » 19 Dec 2018, 15:36

It must be for development purposes.

Normally during development scripts are executed from terminal, for that all environment variables required by script must be set in terminal prior to executing (they are normally set by nzbget when executed from nzbget).

There is an extra variable NZBPO_FEEDOUTFILE which can be set to tell the script to save changed feed into a different file instead of overwriting the input file. That makes development easier since you can execute the script without need to restore the original input file every time.

silhouette
Posts: 14
Joined: 12 Dec 2018, 08:34

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by silhouette » 19 Dec 2018, 15:54

Thanks, I think that I get it now.

If out_file exists, save filtered_feed to out_file, else save filtered_feed to rssfeed_file, which is the file that NzbGet will read.

Is that correct?

hugbug
Developer & Admin
Posts: 7418
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by hugbug » 19 Dec 2018, 16:43

If variable "out_file" is convertible to "true" which in this case happens when environment variable "NZBPO_FEEDOUTFILE" is set to non-empty string.

silhouette
Posts: 14
Joined: 12 Dec 2018, 08:34

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by silhouette » 20 Dec 2018, 00:08

Would it possible to run the script before the NzbGet filters are applied. It would be fantastic if there was an option to modify a feed before the filter in NzbGet is applied.

I.e. the script would modify the feed, so that NzbGet can identify the items from the watchlist(s), but also fetch other items from the same feed. This would enable assigning different categories to items from different lists-

It would also allow re-formatting of non-newznab feeds to be compatible with NzbGets automated duplicate handling.

hugbug
Developer & Admin
Posts: 7418
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by hugbug » 20 Dec 2018, 00:11

That's how it works and the sole purpose of feed scripts.

hugbug
Developer & Admin
Posts: 7418
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by hugbug » 20 Dec 2018, 00:17

Link to feed script feature discussion - https://forum.nzbget.net/viewtopic.php?f=10&t=2015.

silhouette
Posts: 14
Joined: 12 Dec 2018, 08:34

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by silhouette » 20 Dec 2018, 00:39

Thanks, Just tried to modify the title and I can see that the filter is working.

I am obviously just doing something wrong since I don't get a match on the metadata.

silhouette
Posts: 14
Joined: 12 Dec 2018, 08:34

Re: [FeedScript] ImdbWatchlist - RSS with IMDb integration

Post by silhouette » 20 Dec 2018, 00:52

got it, I added a custom item, with a non-standard name. that doesn't appear to be supported. When I put the information into 'description', it works as expected.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest