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

Downloads HTML instead of MP4 #47

Open
rstub opened this issue Mar 11, 2022 · 14 comments
Open

Downloads HTML instead of MP4 #47

rstub opened this issue Mar 11, 2022 · 14 comments

Comments

@rstub
Copy link

rstub commented Mar 11, 2022

When I try to download a video such as https://www.br.de/mediathek/video/abenteuer-wildnis-natur-doku-urwald-von-morgen-nationalpark-eifel-av:61f16675cc0d4d0009a6446e I only get the HTML page downloaded, not the referenced MP4 file:
image

It appears as if the plugin has no effect at all. I am using v0.7.0 on a DS218j with DSM 6.2.4-25556 Update 5:
image

@iNaD
Copy link
Owner

iNaD commented Mar 18, 2022

Hi rstub,

sorry for the late answer. As the video is not available anymore, I can't debug why the download failed for you.
If you have another link from BR Mediathek, which doesn't work, please provide it, so I can look into it.

I tried downloading this Episode and it worked just fine.

@rstub
Copy link
Author

rstub commented Mar 21, 2022

Thanks for looking into this. Sorry for not being clear. So far no download link has worked for me, including the one you provided:
image
So I assume there is something fundamentally wrong with my installation. How could this be debugged?

@iNaD
Copy link
Owner

iNaD commented Mar 21, 2022

Take a look at #46, probably your download station broke the provider.

@rstub
Copy link
Author

rstub commented Mar 22, 2022

My DS seems to be different, maybe because I am using DSM 6.2.4-25556 Update 5. There is no @appconf in /volume1. I did find a userhosts directory at /usr/syno/etc/packages/DownloadStation/download/, but that looks clean:

root@BRH-NAS:/volume1# ls -la /usr/syno/etc/packages/DownloadStation/download/userhosts/
total 12
drwxrwxrwx 3 DownloadStation DownloadStation 4096 Jan 24 09:50 .
drwxr-xr-x 3 DownloadStation DownloadStation 4096 Jan 24 09:50 ..
drwxr-xr-x 4             501              20 4096 Jan 19 20:33 mediathek
root@BRH-NAS:/volume1# ls -la /usr/syno/etc/packages/DownloadStation/download/userhosts/mediathek/
total 28
drwxr-xr-x 4             501              20 4096 Jan 19 20:33 .
drwxrwxrwx 3 DownloadStation DownloadStation 4096 Jan 24 09:50 ..
-rw-r--r-- 1             501              20  377 Jan 19 20:34 INFO
drwxr-xr-x 2             501              20 4096 Jan 24 09:50 Mediatheken
-rw-r--r-- 1             501              20 6850 Jan 19 20:34 SynoFileHostingMediathek.php
drwxr-xr-x 2             501              20 4096 Jan 24 09:50 Utils

I also did a reinstall of both DownloadStation and mediathek.host, but that did not change anything.

@iNaD
Copy link
Owner

iNaD commented Mar 22, 2022

Hmmm that seems odd. I'm a bit confused that the owner name is just a number, not the user's name. But that may have to do with DSM 6.
Did you also try to remove mediathek using the rm command and then install it again? And can it be enabled or disabled in the Download Station settings?

@rstub
Copy link
Author

rstub commented Mar 23, 2022

I think the numbers are to be expected. On my system there is no user with UID 501 (or group with GID 20), but this should have no effect. To be sure I also transferred the directory via chown DownloadStation: -R mediathek/ with now effect.

Removing mediathek with rm and reinstalling things did not change anything either. I am also able to add and remove the tick mark for mediathek in the Download Station settings.

BTW, I have not tried any of the other "File Hosting" options. Maybe that is not working at all for me for some reason? Do you know of any possibility to test those? Does one have to enable PHP processing for Download Station somewhere? I cannot find such a setting, though. Which PHP version is required? I have PHP 7.2 and PHP 7.3 installed.

Maybe I am doing something fundamentally wrong. Here are the steps I have taken:

  1. Install Download Station on my NAS
  2. Install mediathek.host as an additional "File Hosting" provider
  3. In Download Station use "Create Download via URL" and provide a URL such as https://www.br.de/mediathek/video/abenteuer-wildnis-tier-doku-polarwoelfe-ueberleben-in-kanadas-arktis-av:61bc72ea119391000941a19b

This results in a 100kB HTML file being downloaded. Any obvious errors in that procedure?

@iNaD
Copy link
Owner

iNaD commented Mar 27, 2022

Hmm I'm not sure if DSM 6's Download Station is that much different. Haven't changed anything to make the Hostfile compatible with DSM 7.

I could create a debug version, so we can see if the host is even executed. Maybe I find some spare time today.

@MHartmann-427
Copy link

I have the same problem with Download Station and latest mediathek.host. Only a HTML-file of a size between 80 and 100 KB was downloaded. I have the same DSM version as rstub and I reinstalled Download Station and mediathek.host 0.7.0 without success.
It covers nearly all downloads from a mediathek of ARD and ZDF.

I have this problem since version 0.6.X (don't know the exact version).

@steeve-kaut1
Copy link

I have "the same problem" since may 2022... I can't download any video from https://www.arte.tv/fr/, I just get html files.

DS1019+
DSM 7.1-42661 Update 1
Download Station 3.9.3-4609
mediathek 0.7.0

look at files received for https://www.arte.tv/fr/videos/046579-001-A/real-humans-saison-1-1-10 => real-humans-saison-1-1-10.zip

@MHartmann-427
Copy link

I updated my device to DSM 7.1.1-42962 Update 5 and uninstalled package PHP 7.0 (it's not supported in DMS 7.x) and now I will get the MP4 files again.
Maybe it is an issue about installed PHP package(s).
Right now I have only installed package PHP 7.4.

@rstub
Copy link
Author

rstub commented May 11, 2023

I am not sure if my DS218j has enough memory for DSM 7.x. Concerning PHP, I have only version 7.3 and 7.4 installed.

@MHartmann-427
Copy link

My device is a DS115j and I could install DSM 7.1.1 without problems.
Go to https://www.synology.com/de-de/support/download and select your NAS-model.
Synology show you the possible DSM versions to install (I need to download the installer(s) and upgrade manually).
On the page you can also select your current DSM version and the DMS version you want to upgrade to. Synology gives you advise on how to do it the best way (I had to install version 7.0 first and then I could update to latest 7.1.1).

@rstub
Copy link
Author

rstub commented May 15, 2023

Thanks @MHartmann-427 for the encouragement. I have now also updated to DSM 7.1.1 and can report that downloading works as expected now. Interestingly, for @steeve-kaut1 using a recent DSM is not sufficient.
@iNaD: I leave it to you how to proceed with this issue.

@iNaD
Copy link
Owner

iNaD commented May 16, 2023

Thanks for your research and updates on this topic. I will keep this open for now and add a Troubleshooting section to the Readme with the suggestions from this issue.

@iNaD iNaD pinned this issue May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants