Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
885fd4ca
Commit
885fd4ca
authored
Aug 17, 2005
by
dionoea
Browse files
if ttl==0, don't update the feeds
parent
b3b2e8fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_filter/rss.c
View file @
885fd4ca
...
...
@@ -114,7 +114,7 @@ struct filter_sys_t
#define LENGTH_TEXT N_("RSS feed max number of chars displayed")
#define LENGTH_LONGTEXT N_("RSS feed max number of chars displayed")
#define TTL_TEXT N_("Number of seconds between each forced refresh of the feeds")
#define TTL_LONGTEXT N_("Number of seconds between each forced refresh of the feeds")
#define TTL_LONGTEXT N_("Number of seconds between each forced refresh of the feeds
. If 0, the feeds will never be updated.
")
#define POSX_TEXT N_("X offset, from left")
...
...
@@ -302,7 +302,8 @@ static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
}
/* Do we need to update the feeds ? */
if
(
time
(
NULL
)
>
p_sys
->
t_last_update
+
(
time_t
)
p_sys
->
i_ttl
)
if
(
p_sys
->
i_ttl
&&
time
(
NULL
)
>
p_sys
->
t_last_update
+
(
time_t
)
p_sys
->
i_ttl
)
{
msg_Dbg
(
p_filter
,
"Forcing update of all the RSS feeds"
);
if
(
FetchRSS
(
p_filter
)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment