Thread: [Fremantle Maemo5] cuteNews - RSS news and podcast aggregator
View Single Post
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#52
Originally Posted by Halftux View Post

Originally Posted by nonsuch View Post
Some enclosure downloads (audio podcasts) fail with cutenews' inbuilt capabilities
An example would be nice.
OK, let's concentrate on that first.

Here's a podcast that fails to download - the error message inthe Download window is simply "Failed: Error downloading http://stitcher.acast.com/..........".

However, the original URL is "http://open.live.bbc.co.uk/mediaselector/6/redir/version/2.0/mediaset/audio-nondrm-download-low/proto/http/vpid/p0858555.mp3" - so there's some redirecting happening.
(source: https://podcasts.files.bbci.co.uk/p02nq0gn.rss)

The log says:
Code:
2020-03-01T10:58:48: PluginManager::getConfigForEnclosure(). No Plugin found for enclosure http://open.live.bbc.co.uk/mediasele...d/p0858555.mp3
2020-03-01T10:58:48: file:///opt/cutenews/qml/DownloadDialog.qml:56:13: QML Label: Binding loop detected for property "width"
2020-03-01T10:58:49: file:///opt/cutenews/qml/DownloadDialog.qml:56:13: QML Label: Binding loop detected for property "width"
2020-03-01T10:58:49: file:///opt/cutenews/qml/DownloadDialog.qml:56:13: QML Label: Binding loop detected for property "width"
2020-03-01T10:58:51: Transfers::addEnclosureDownload(). URL: http://open.live.bbc.co.uk/mediasele...d/p0858555.mp3
2020-03-01T10:58:51: Transfer::setStatus(). ID: eb33d4d4-28c7-409f-b384-09992f6519a1, Status: Queued
2020-03-01T10:58:52: EnclosureDownload::startDownload(). URL: http://open.live.bbc.co.uk/mediasele...d/p0858555.mp3
2020-03-01T10:58:52: Transfer::setStatus(). ID: eb33d4d4-28c7-409f-b384-09992f6519a1, Status: Downloading
2020-03-01T10:58:53: EnclosureDownload::followRedirect(). URL: http://flex.acast.com/ak/mpg_mp3_vlo...b45a9be2eb8edf
2020-03-01T10:58:54: EnclosureDownload::followRedirect(). URL: http://stitcher.acast.com/livestitch...AFARUOTJQ3BLOQ
2020-03-01T10:58:54: Subscriptions::getScheduledUpdates(). Fetching subscriptions due for update since 2020-03-01T10:57:54
2020-03-01T10:58:55: Transfer::setStatus(). ID: eb33d4d4-28c7-409f-b384-09992f6519a1, Status: Failed: Error downloading http://stitcher.acast.com/livestitch...AFARUOTJQ3BLOQ - server replied: Forbidden
2020-03-01T10:58:55: Transfers::save(). 1 transfers saved
So yeah, I can clearly see the server reply: Forbidden.

Trying the same with wget:
Code:
$> wget "http://open.live.bbc.co.uk/mediaselector/6/redir/version/2.0/mediaset/audio-nondrm-download-low/proto/http/vpid/p0858555.mp3"
--2020-03-01 11:09:31--  http://open.live.bbc.co.uk/mediasele...d/p0858555.mp3
Resolving open.live.bbc.co.uk... 212.58.244.79, 212.58.249.158
Connecting to open.live.bbc.co.uk|212.58.244.79|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://flex.acast.com/ak/mpg_mp3_vlo...a216906e3e18ef [following]
--2020-03-01 11:09:31--  http://flex.acast.com/ak/mpg_mp3_vlo...a216906e3e18ef
Resolving flex.acast.com... 13.226.39.56, 13.226.39.36, 13.226.39.47, ...
Connecting to flex.acast.com|13.226.39.56|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://stitcher.acast.com/livestitch...AFARUOTJQ3BLOQ [following]
--2020-03-01 11:09:32--  http://stitcher.acast.com/livestitch...AFARUOTJQ3BLOQ
Resolving stitcher.acast.com... 13.226.39.127, 13.226.39.88, 13.226.39.46, ...
Connecting to stitcher.acast.com|13.226.39.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15559573 (15M) [audio/mpeg]
Saving to: ‘p0858555.mp3’

p0858555.mp3                                        100%[=============================>]  14.84M   758KB/s    in 25s     

2020-03-01 11:09:57 (609 KB/s) - ‘p0858555.mp3’ saved [15559573/15559573]
So wget manages to follow the redirects without getting thrown out.

I compared the last two links, they are similar but not identical; I guess the server generates new access tokens for each request. But why is wget allowed to download in the end, and cutenews isn't?

BTW, this isn't a one-off, I constantly download podcasts from this particular feed with wget because they constantly fail with cutenews.
__________________
N900 in 2020
SFOS in 2021

Last edited by nonsuch; 2020-03-01 at 14:26.
 

The Following User Says Thank You to nonsuch For This Useful Post: