-
-
Notifications
You must be signed in to change notification settings - Fork 991
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
[tumblr] Add support for custom domains #71
Comments
Option number two would overall lead to more elegant code, but the way I'd want to implement it would require some "back-end" changes and break some existing features, which is not necessarily bad but requires some time and thought. |
That's perfectly fine with me, thanks. As long as it does not break the workflow 😄 |
Good, then I'm going to close this for the time being. I might change this whole thing to what you described in your second option, we'll see. I will let you know if that should happen. |
Not really sure what is going on, but I get this:
Trying another URL format doesn't change anything. Error appears also for URLs like |
Ah, False Alarm, I think. My bad. Working with API Key and Something wrong with my current |
This happens if |
It's definitely caused by the So that alone is not the reason itself. gallery-dl/gallery_dl/extractor/tumblr.py Lines 232 to 234 in 421a974
OAuth makes use of all four key values, maybe there is some mismatch here? There's still the |
The solution was actually in the stack trace you posted all along, I just didn't take a proper look at it this morning ...
You set a custom value for your the API secret (consumer_secret), which isn't a string. Even if it where a string, it wouldn't work anyway. Tumblr would complain about the |
|
Yes, you're right. I just saw it in my Here's what happened: I have a template file for my It looks basically like this (The Tumblr part):
I merge any changes back into my real So, after But even with only BTW, let's continue this in #65 , because it's clearly an authentication thing and has nothing to do with custom domains. |
PSA: Because I've just stumbled upon this while testing something, and want to spare anyone of any potential hassle: The first example URL above ( But the old Tumblr blog still exists, and can be found here: |
The first small fish mentioned.. 😄
You can use custom domain names for any blog on Tumblr, probably nothing more than the usual CNAME redirection.
As expected, gallery-dl has no pattern to match in such a case, thus "No suitable extractor".
I have picked two examples:
(1) http://tumblr.deadendthrills.com/
(2) http://www.b-authentique.com/
(1) does not hide its true nature, looks pretty much like a typical Tumblr site, or to be more specific, like many of the popular themes for Tumblr. Including the the typical buttons/links for reblog, permalink, and the listed tags.
Not to mention the Tumblr buttons on the top right. And the
tumblr
in the URL is a good hint too, I guess.(2) is a lot more interesting. No hints for Tumblr whatsoever. Instead it looks just like your average "webzine" site, or online magazine, or whatever it is called nowadays. The linked entries might give it away:
{base-url}/post/{id}/{description}
. And you can use the usual Tumblr navigation maneuvers, just append/tagged/a-tag
to the URL in the browser, or better/archive
.On a side note, I personally would recommend both (1) and (2). Especially the first one, really great example of good original content. The other one is OC as well, and also, uh, interesting. In my opinion.
But, as can be seen by using the trusted Web Console again, it's actually possible to get the usual response just like any vanilla Tumblr blog. Including
posts
, etc.Fig. 1
Fig. 2
Good News: I think this is something which should be rather easy to change:
gallery-dl/gallery_dl/extractor/tumblr.py
Lines 265 to 266 in cc0c2cc
blog
should not be restricted to{}.tumblr.com
, basically. This should probably do the trick.Bad News: From a UX perspective, this is a bit of a nightmare. Not sure how to solve this matter elegantly.
I can think of two options right now.
--force tumblr
maybe. But, to be fair, from all supported sites, only Tumblr would have this special "problem". And not just that, but as far as I know, there is no other site, platform, social network or creative network or whatever that allows such shenanigans. So, in effect, this flag could be named as just--tumblr
. Until some other site comes up with similar genius features.meta
part andcode 200
etc. and then proceed with the extraction.The text was updated successfully, but these errors were encountered: