podcast: add support for more feed properties in feed parser results
totem-pl-parser
currently populates feed ( channel ) properties from the podcast rss xml, which has limited number of fields.
- Current properties from
totem-pl-parser
for a feed:
publication-date => Thu, 23 Jul 2020 15:02:00 +0000
copyright => (C) BBC 2020
image-url => http://ichef.bbci.co.uk/images/ic/3000x3000/p076j2sr.jpg
url => https://podcasts.files.bbci.co.uk/p02pc9tn.rss
description => Learn and practise useful English language for everyday situations with the BBC. A weekly instruction manual for saying or doing something in English is published every Thursday.
language => en
title => 6 Minute English
author => BBC Radio
- Current properties from iTunes search results:
wget "https://itunes.apple.com/lookup?id=262026947&entity=podcast" -O 262026947
{
"resultCount":1,
"results":[
{
"wrapperType":"track",
"kind":"podcast",
"artistId":121676617,
"collectionId":262026947,
"trackId":262026947,
"artistName":"BBC Radio",
"collectionName":"6 Minute English",
"trackName":"6 Minute English",
"collectionCensoredName":"6 Minute English",
"trackCensoredName":"6 Minute English",
"artistViewUrl":"https://podcasts.apple.com/us/artist/bbc/121676617?uo=4",
"collectionViewUrl":"https://podcasts.apple.com/us/podcast/6-minute-english/id262026947?uo=4",
"feedUrl":"https://podcasts.files.bbci.co.uk/p02pc9tn.rss",
"trackViewUrl":"https://podcasts.apple.com/us/podcast/6-minute-english/id262026947?uo=4",
"artworkUrl30":"https://is2-ssl.mzstatic.com/image/thumb/Podcasts113/v4/e2/1c/5e/e21c5efa-f4f9-ecdc-97e3-cd04411df0ed/mza_1826440733582743376.jpg/30x30bb.jpg",
"artworkUrl60":"https://is2-ssl.mzstatic.com/image/thumb/Podcasts113/v4/e2/1c/5e/e21c5efa-f4f9-ecdc-97e3-cd04411df0ed/mza_1826440733582743376.jpg/60x60bb.jpg",
"artworkUrl100":"https://is2-ssl.mzstatic.com/image/thumb/Podcasts113/v4/e2/1c/5e/e21c5efa-f4f9-ecdc-97e3-cd04411df0ed/mza_1826440733582743376.jpg/100x100bb.jpg",
"collectionPrice":0.00,
"trackPrice":0.00,
"trackRentalPrice":0,
"collectionHdPrice":0,
"trackHdPrice":0,
"trackHdRentalPrice":0,
"releaseDate":"2020-07-23T15:02:00Z",
"collectionExplicitness":"cleaned",
"trackExplicitness":"cleaned",
"trackCount":12,
"country":"USA",
"currency":"USD",
"primaryGenreName":"Education",
"contentAdvisoryRating":"Clean",
"artworkUrl600":"https://is2-ssl.mzstatic.com/image/thumb/Podcasts113/v4/e2/1c/5e/e21c5efa-f4f9-ecdc-97e3-cd04411df0ed/mza_1826440733582743376.jpg/600x600bb.jpg",
"genreIds":[
"1304",
"26"
],
"genres":[
"Education",
"Podcasts"
]
}
]
}
If the app using totem-pl-parser
needs few JSON fields ( say, country
/ currency
/ collectionExplicitness
) from iTunes JSON data ([2]
), should the app query and handle the iTunes JSON data on its own (or) is it possible for the fields to be made available by totem-pl-parser
in playlist-started
hashtable ?