Show podcast duration

main
bashrc 2026-04-13 16:33:05 +01:00
parent 2a80702267
commit 1c5e2f86e7
30 changed files with 68 additions and 30 deletions

View File

@ -672,8 +672,7 @@ def xml_podcast_to_dict(base_dir: str, xml_item: str, xml_str: str) -> {}:
duration = duration.split('>')[1]
if '<' in duration:
duration = duration.split('<')[0]
if duration.isdigit():
podcast_properties['duration'] = duration
podcast_properties['duration'] = duration
# get the image for the podcast, if it exists
podcast_episode_image = None

View File

@ -767,5 +767,6 @@
"Bot": "الروبوت",
"Show Map": "عرض الخريطة",
"Organisation": "منظمة",
"Group": "مجموعة"
"Group": "مجموعة",
"minutes": "دقائق"
}

View File

@ -767,5 +767,6 @@
"Bot": "রোবট",
"Show Map": "মানচিত্র দেখান",
"Organisation": "সংগঠন",
"Group": "গ্রুপ"
"Group": "গ্রুপ",
"minutes": "মিনিট"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Mostra el mapa",
"Organisation": "Organització",
"Group": "Grup"
"Group": "Grup",
"minutes": "minuts"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Dangos Map",
"Organisation": "Sefydliad",
"Group": "Grŵp"
"Group": "Grŵp",
"minutes": "munudau"
}

View File

@ -767,5 +767,6 @@
"Bot": "Roboter",
"Show Map": "Karte anzeigen",
"Organisation": "Organisation",
"Group": "Gruppe"
"Group": "Gruppe",
"minutes": "minuten"
}

View File

@ -767,5 +767,6 @@
"Bot": "Ρομπότ",
"Show Map": "Εμφάνιση Χάρτη",
"Organisation": "Οργάνωση",
"Group": "Ομάδα"
"Group": "Ομάδα",
"minutes": "πρακτικά"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Show Map",
"Organisation": "Organisation",
"Group": "Group"
"Group": "Group",
"minutes": "minutes"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Mostrar mapa",
"Organisation": "Organización",
"Group": "Grupo"
"Group": "Grupo",
"minutes": "minutos"
}

View File

@ -767,5 +767,6 @@
"Bot": "ربات",
"Show Map": "نمایش نقشه",
"Organisation": "سازمان",
"Group": "گروه"
"Group": "گروه",
"minutes": "دقیقه"
}

View File

@ -767,5 +767,6 @@
"Bot": "Robotti",
"Show Map": "Näytä kartta",
"Organisation": "Organisaatio",
"Group": "Ryhmä"
"Group": "Ryhmä",
"minutes": "minuuttia"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Afficher la carte",
"Organisation": "Organisation",
"Group": "Groupe"
"Group": "Groupe",
"minutes": "minutes"
}

View File

@ -767,5 +767,6 @@
"Bot": "Róbat",
"Show Map": "Taispeáin Léarscáil",
"Organisation": "Eagraíocht",
"Group": "Grúpa"
"Group": "Grúpa",
"minutes": "nóiméad"
}

View File

@ -767,5 +767,6 @@
"Bot": "רוֹבּוֹט",
"Show Map": "הצג מפה",
"Organisation": "אִרגוּן",
"Group": "קְבוּצָה"
"Group": "קְבוּצָה",
"minutes": "פּרוֹטוֹקוֹל"
}

View File

@ -767,5 +767,6 @@
"Bot": "रोबोट",
"Show Map": "नक्शा दिखाएं",
"Organisation": "संगठन",
"Group": "समूह"
"Group": "समूह",
"minutes": "मिनट"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Mostra mappa",
"Organisation": "Organizzazione",
"Group": "Gruppo"
"Group": "Gruppo",
"minutes": "minuti"
}

View File

@ -767,5 +767,6 @@
"Bot": "ロボット",
"Show Map": "地図を表示",
"Organisation": "組織",
"Group": "グループ"
"Group": "グループ",
"minutes": "分"
}

View File

@ -767,5 +767,6 @@
"Bot": "기계 인간",
"Show Map": "지도 표시",
"Organisation": "조직",
"Group": "그룹"
"Group": "그룹",
"minutes": "분"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Nexşeya Nîşan Bide",
"Organisation": "Sazûman",
"Group": "Kom"
"Group": "Kom",
"minutes": "deqîqe"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Kaart weergeven",
"Organisation": "Organisatie",
"Group": "Groep"
"Group": "Groep",
"minutes": "notulen"
}

View File

@ -763,5 +763,6 @@
"Bot": "Bot",
"Show Map": "Show Map",
"Organisation": "Organisation",
"Group": "Group"
"Group": "Group",
"minutes": "minutes"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Pokaż mapę",
"Organisation": "Organizacja",
"Group": "Grupa"
"Group": "Grupa",
"minutes": "protokół"
}

View File

@ -767,5 +767,6 @@
"Bot": "Robô",
"Show Map": "Mostrar mapa",
"Organisation": "Organização",
"Group": "Grupo"
"Group": "Grupo",
"minutes": "minutos"
}

View File

@ -767,5 +767,6 @@
"Bot": "Робот",
"Show Map": "Показать карту",
"Organisation": "Организация",
"Group": "Группа"
"Group": "Группа",
"minutes": "минут"
}

View File

@ -767,5 +767,6 @@
"Bot": "Roboti",
"Show Map": "Onyesha Ramani",
"Organisation": "Shirika",
"Group": "Kundi"
"Group": "Kundi",
"minutes": "dakika"
}

View File

@ -767,5 +767,6 @@
"Bot": "Bot",
"Show Map": "Haritayı Göster",
"Organisation": "Organizasyon",
"Group": "Grup"
"Group": "Grup",
"minutes": "dakika"
}

View File

@ -767,5 +767,6 @@
"Bot": "Робот",
"Show Map": "Показати карту",
"Organisation": "Організація",
"Group": "Група"
"Group": "Група",
"minutes": "хвилин"
}

View File

@ -767,5 +767,6 @@
"Bot": "ראָבאָט",
"Show Map": "ווייַזן מאַפּע",
"Organisation": "אָרגאַניזאַציע",
"Group": "גרופּע"
"Group": "גרופּע",
"minutes": "מינוטן"
}

View File

@ -767,5 +767,6 @@
"Bot": "机器人",
"Show Map": "显示地图",
"Organisation": "组织",
"Group": "团体"
"Group": "团体",
"minutes": "分钟"
}

View File

@ -462,6 +462,17 @@ def html_podcast_episode(translate: {},
'<p><span itemprop="description">' + \
podcast_description + '</span></p>\n'
if podcast_properties.get('duration'):
if podcast_properties['duration'].isdigit():
podcast_str += \
'<p><span itemprop="description">' + \
podcast_properties['duration'] + ' ' + \
translate['minutes'] + '</span></p>\n'
else:
podcast_str += \
'<p><span itemprop="description">' + \
podcast_properties['duration'] + '</span></p>\n'
# donate button
if podcast_properties.get('funding'):
if podcast_properties['funding'].get('url'):