Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Icecast-Server
Commits
428c1f1f
Commit
428c1f1f
authored
Jun 26, 2003
by
Ed "oddsock" Zaleski
Browse files
- force touches when mp3 metadata is updated via admin interface
svn path=/trunk/icecast/; revision=5007
parent
1726d0cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/admin.c
View file @
428c1f1f
...
...
@@ -604,6 +604,10 @@ static void command_metadata(client_t *client, source_t *source)
char
*
action
;
char
*
value
;
mp3_state
*
state
;
#ifdef USE_YP
int
i
;
time_t
current_time
;
#endif
DEBUG0
(
"Got metadata update request"
);
...
...
@@ -632,6 +636,16 @@ static void command_metadata(client_t *client, source_t *source)
DEBUG2
(
"Metadata on mountpoint %s changed to
\"
%s
\"
"
,
source
->
mount
,
value
);
stats_event
(
source
->
mount
,
"title"
,
value
);
#ifdef USE_YP
/* If we get an update on the mountpoint, force a
yp touch */
current_time
=
time
(
NULL
);
for
(
i
=
0
;
i
<
source
->
num_yp_directories
;
i
++
)
{
source
->
ypdata
[
i
]
->
yp_last_touch
=
current_time
-
source
->
ypdata
[
i
]
->
yp_touch_interval
+
2
;
}
#endif
html_success
(
client
,
"Metadata update successful"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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