Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 3e71493

Browse files
committed
corrections for check, if locally queued.
1 parent 72cc5a2 commit 3e71493

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mediathekDownloader/__main__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def skipDedicatedEpisodeVariants(episodeTitle : str) -> bool:
129129
if episodeTitle.find('(mit Untertitel)') != -1: skip = True
130130
if episodeTitle.find('(Englisch)') != -1: skip = True
131131

132+
if skip: debug('Skipped, is a special version.')
133+
132134
return skip
133135

134136
def determineFileAlreadyExists(filePath : str) -> bool:
@@ -201,8 +203,10 @@ def retrieveFeed(feedUrl:str, outputPath:str, printFeedItems:bool=False)->[]:
201203
existsAlready = determineFileAlreadyExists(downloadQueueItem.fullFilePath())
202204
isInHistory = ( fileIsInHistory(downloadQueueItem.path, downloadQueueItem.fileName) ) or ( fileIsInHistory(downloadQueueItem.path, vsInfo.identifyingTerm ) )
203205
isInPast = True if (vsInfo.episodeReleaseDate < datetime.now().date()) else False
204-
isAlreadyQueued = isFileInLocalQueue( vsInfo.identifyingTerm )
205-
206+
207+
if skip == False and existsAlready == False and isInHistory == False and isInPast == True:
208+
isAlreadyQueued = isFileInLocalQueue( vsInfo.identifyingTerm )
209+
206210
if skip == False and existsAlready == False and isInHistory == False and isInPast == True and isAlreadyQueued == False:
207211
downloadQueueItems.append(downloadQueueItem)
208212
if printFeedItems: printFeedItem(entry)

0 commit comments

Comments
 (0)