Repository: ytdl-org/youtube-dl

Issue:
download from d.tube fails
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2019.01.02*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2019.01.02**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for __re__adding support for an existing site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:

Add the `-v` flag to **your command line** 

```
user@mymachine:~$ youtube-dl --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.02
[debug] Python version 3.5.3 (CPython) - Linux-4.9.0-4-amd64-x86_64-with-debian-9.2
[debug] exe versions: none
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
user@ mymachine:~$ youtube-dl --verbose "https://d.tube/#!/v/dennisxxx/lgfrcata"
bash: !/v/dennisxxx/lgfrcata: event not found
```
### Description of your *issue*, suggested solution and other information

Download from d.tube failed. I am sorry to not being able to provide more information. If I can help/try anything else I will gladly do though....


Discussion:
Your problem is not related to youtube-dl, but to the shell.
You need to escape `!` with `\`, or use `'` instead of `"`:
`youtube-dl --verbose 'https://d.tube/#!/v/xxxxxxxxx/xxxxxxxx'`
It seems that it's not possible get data for any video format (240p, 480p, Source).
Maybe something is wrong with this link? Is any similar link working?
Sorry but I cannot be more helpful.
Hm. I took another random link (`https://d.tube/#!/v/steemsistershow/bw35svqm`) that plays well but throws the same error when trying to youtube-dl. Is youtube-dl working for you with d.tube so that you can send me a link to try?

@4rensiker Please do not post the doxing link in cleartext.
I am not sure how this helps in finding bugs @sebilasse. If there is a problem with a certain URL the developer needs this URL. The content was deleted anyway. But thank you for the hint.
The problem seems to involve every DTube video, so I suppose that something has changed.
I have never used this service, but I was able to get it working, replacing just one line in the file `youtube_dl/extractor/dtube.py`.
Replace `return 'https://ipfs.io/ipfs/' + h` with `return 'https://video.dtube.top/ipfs/' + h`
Hopefully it will be fixed in the next release, but it's better to wait for a response from the developers.
About the links, I suppose that they are allowed if they are public and if they don't violate any copyright.
@GianlucaFicarelli No, posting the link above is strictly illegal ! It contained sensitive informations about german politicians (e.g. pictures of their kids) - it was illegal for two reasons : privacy and copyright. Just wanted to save the person posting this from criminally liability !

Read more (in english) here
https://www.politico.eu/article/germany-data-hack-merkel-whacked/
https://www.theregister.co.uk/2019/01/04/germany_mass_hack_merkel/
https://slate.com/news-and-politics/2019/01/germany-hacked-data-breach-angela-merkel-dilemma.html
https://www.bbc.com/news/world-europe-46757009
@sebilasse I was not meaning that the specific link above was legal or illegal, because I didn't check it.
So, good that you have checked and warned the poster.

Resolving patch:
diff --git a/youtube_dl/extractor/dtube.py b/youtube_dl/extractor/dtube.py
--- a/youtube_dl/extractor/dtube.py
+++ b/youtube_dl/extractor/dtube.py
@@ -48,7 +48,7 @@ def _real_extract(self, url):
         def canonical_url(h):
             if not h:
                 return None
-            return 'https://ipfs.io/ipfs/' + h
+            return 'https://video.dtube.top/ipfs/' + h
 
         formats = []
         for q in ('240', '480', '720', '1080', ''):


Test patch: