commit f32b19ca97bf300a85b3e6b720e02f33e3065002
parent a0637f751c5497c6a6cbc4f35b6bb73ea329db8a
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Thu, 20 May 2021 20:47:42 +0200

TV2Feed: change ID of status change entries

Diffstat:
Mtv2feed.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tv2feed.py b/tv2feed.py @@ -71,7 +71,7 @@ entries_per_show = 10 shows = sys.argv[1:] # alternatively, hardcode them in the script # until here! -version = '0.2' # TV2Feed version +version = '0.3' # TV2Feed version url_base = 'https://{}/{}'.format(domain, path + '/' if path != '' else '') id_base = 'tag:{},2021-05-19:/{}'.format(domain, path + '/' if path != '' else '') info_endpoint_tmpl = 'https://api.tvmaze.com/shows/{}' @@ -128,7 +128,7 @@ for show in shows: if show_info['status'] != 'Running': feed_data.append({ 'airstamp': now, - 'id': 'status', + 'id': 'status/' + show_info['status'], 'name': 'Show status: {}'.format(show_info['status']), 'number': None, 'season': None,