Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Episode status prevents playing #432

Closed
Iamnome opened this issue Dec 17, 2023 · 3 comments
Closed

Episode status prevents playing #432

Iamnome opened this issue Dec 17, 2023 · 3 comments
Labels

Comments

@Iamnome
Copy link

Iamnome commented Dec 17, 2023

I am running Gonic on Docker using sentriz/gonic:latest.

I have an issue where Gonic seems to have downloaded all the podcasts from my 35 feeds, but if I check in Soundwaves there are still quite a few episodes across different feeds showing as downloading not completed.

The number of files in the podcast directories, determined by running tree in the base podcast directory, hasn't changed in the last day or so.

@sentriz
Copy link
Owner

sentriz commented Dec 17, 2023

it's quite hard to debug this without any more info

could visit

http://your-gonic/rest/getPodcasts?v=v&u=USERNAME&p=PASSWORD&c=c

and find episodes where the status is not "completed", and also show the state of the filesystem for mismatches?

@Iamnome
Copy link
Author

Iamnome commented Dec 17, 2023

<episode id="pe-11" streamId="pe-11" channelId="pd-1" title="Margaret Thatcher" description="Margaret Thatcher was one of the most controversial figures of the 20th Century. Praised by some as a fearless leader and feminist icon, and despised by others as a heartless politician, the Iron Lady caused divisions wherever she went. But why did Britain’s first female Prime Minister inspire such extreme hatred? What policies did she implement, how did they affect the communities of Britain? And what, if anything, is her legacy today? This is a Short History of Margaret Thatcher. Written by Nicole Edmunds. With thanks to Chris Collins, historian, and editor of Margaretthatcher.org. Learn more about your ad choices. Visit podcastchoices.com/adchoices" publishDate="2023-10-08T23:01:00Z" status="downloading" parent="" isDir="false" year="2023" genre="Podcast" coverArt="pd-1" size="0" contentType="audio/mpeg" suffix="mp3" duration="3235" bitRate="0" path=""/>

I've picked this one out for an example. it shows downloading as it's status but nothing has been downloaded for over a day. This one shows 0 size and 0 bitrate, another one I have looked at from the Redhanded feed shows a size but 0 bitrate. This list doesn't show file names so it's very difficult to compare this to the actual files which have random names.

Is there anyway for force Gonic to restart these downloads?

sentriz added a commit that referenced this issue Dec 17, 2023
- delegate async download to parents to allow capturing errors
- set "downloading" status a little bit later
- reset status on "error" on more errors

fixes #432
sentriz added a commit that referenced this issue Dec 17, 2023
- delegate async download to parents to allow capturing errors
- set "downloading" status a little bit later
- reset status on "error" on more errors

fixes #432
sentriz added a commit that referenced this issue Dec 17, 2023
- delegate async download to parents to allow capturing errors
- set "downloading" status a little bit later
- reset status on "error" on more errors

fixes #432
@sentriz sentriz added bug and removed question labels Dec 17, 2023
sentriz added a commit that referenced this issue Dec 19, 2023
- delegate async download to parents to allow capturing errors
- set "downloading" status a little bit later
- reset status on "error" on more errors

fixes #432
sentriz added a commit that referenced this issue Dec 20, 2023
- delegate async download to parents to allow capturing errors
- set "downloading" status a little bit later
- reset status on "error" on more errors

fixes #432
sentriz added a commit that referenced this issue Dec 20, 2023
    - drive download by a single download "event loop" thread
        - controlled concurrency
        - resume-on-restart downloads
        - suspend gonic shutdown until current download is complete
    - re-use pe filename as download destination to avoid .1 .1.1 .1.1.1 etc unique names
    - update error status in more places

fixes #432
sentriz added a commit that referenced this issue Dec 20, 2023
    - drive download by a single download "event loop" thread
        - controlled concurrency
        - resume-on-restart downloads
        - suspend gonic shutdown until current download is complete
    - re-use pe filename as download destination to avoid .1 .1.1 .1.1.1 etc unique names
    - update error status in more places

fixes #432
sentriz added a commit that referenced this issue Dec 20, 2023
    - drive download by a single download "event loop" thread
        - controlled concurrency
        - resume-on-restart downloads
        - suspend gonic shutdown until current download is complete
    - re-use pe filename as download destination to avoid .1 .1.1 .1.1.1 etc unique names
    - update error status in more places

fixes #432
sentriz added a commit that referenced this issue Dec 20, 2023
    - drive download by a single download "event loop" thread
        - controlled concurrency
        - resume-on-restart downloads
        - suspend gonic shutdown until current download is complete
    - re-use pe filename as download destination to avoid .1 .1.1 .1.1.1 etc unique names
    - update error status in more places

fixes #432
@sentriz
Copy link
Owner

sentriz commented Dec 21, 2023

fixed by #433

@sentriz sentriz closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants