-
-
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
[deviantart] Changed keywords, or API query? #35
Comments
You should either change the favorite directory-format to This change happened during the time we talked about default paths and general consistency in #26 (af9bd17). I can re-add this key if you think it is useful, but |
Ah, that delegating thing again... I guess I didn't notice this issue earlier in this case because all I've used gallery-dl with recently were group URLs on DeviantArt. The old behaviour of the favorites sub-extractor is now used in the collection sub-extractor? Or do I misremember something here? And what about that certain
Nah, I think this wouldn't make any sense.
Yes, this is what's determined by
In which case gets anything added manually now? Well, I have an idea here, I'm trying to describe what I actually want to achieve: I have a DeviantArt root directory (as part of the
Which does not really make any sense, when I think about it now. Because then they actually belong inside their respective counterparts, and I change my directory settings accordingly. And, because I couldn't wrap my mind around using Edit: A little background info for better understanding: Of course I've thought about using |
The old behavior of the favorites extractor did indeed change. It got split in two:
The old favorite extractor used to combine these two functions, but this newer structure produces better code and has nice similarities with how galleries are handled:
(I hope you can see the similarities between Gallery- and FavoriteExtractor and their respective "smaller" versions as Folder- and CollectionExtractor)
No, they aren't. The Gallery- and FolderExtractors only use their "smaller versions" if the
Well, they kind of do belong together. The default paths put collections/folders into the same directory as Favorite-/Gallery-Extractors do.
As previously noted: two collections/folders can contain the same image twice, so you would be downloading duplicate images. I don't think there are any other downsides. I should state that their is no need to use the |
Yes, I got that, this was more about how DeviantArt itself handles this distinction. Like, for example, when browsing, interacting or whatever with the website, you will only encounter 'collections' if you're looking at a 'favorites' section, and 'folders' only as part of a gallery etc., and these two never get mixed. In short, if DeviantArt is consistent here in this regard.
Right, I remember. But duplicates are less of a problem, in my opinion, because no matter the OS, there are more than enough tools to deal with that. I have not done that yet, but it should be perfectly possible to use such a program and turn duplicate files into symlinks or hardlinks or whatever to clean up wasted storage capacity while keeping the entire functionality of gallery-dl, making it possible to skip files it already found. I should have been more clear with my question, I was more concerned about really getting all possible items to be honest, just like the
Yes, that's the thing. Many accounts on DeviantArt don't use a proper structure at all, some do but only inconsequentially, and some few actually have a good folder structure, keeping this would make sense here. The really interesting question is, would it be possible to use Sorry if this is a bit too much of a "but muh workflow!!" question 😄 |
I'm pretty sure that it is. There is the
The GalleryExtractor using # using gallery/all
$ gallery-dl -g http://rosuuri.deviantart.com/ | sort | uniq | wc -l
386
# going through all gallery-folders
$ gallery-dl -o flat=false -gg http://rosuuri.deviantart.com/ | sort | uniq | wc -l
366 There are for some reason 20 images missing, even though the total amount of returned URLs is ca. 750. Using Concerning Favourites: there is sadly no
That sounds like an interesting proposition, but you can do something like this manually:
If that doesn't fit your needs, open another issue for that and we can discuss it there.
No, that's fine. Don't worry about it. |
Yes, exactly this, good to know. Thanks.
Yes, that is true. From what I've seen so far, the result of good ol' Too bad that the folder extraction method doesn't always return the same result, although I have a suspicion on the reason why that might be. Presumably, there is only one base gallery for every account, every submission by the user to the site ends up there, giving a linear or flat gallery of all deviation-items. The user can now create folders, grouping together single items at will, and present these sets together to the visitors on the site. So, you can basically think of gallery folders as some sort of presentation layer on top of the full user gallery. Basically just a view into the gallery, and the folder analogy doesn't hold up here in comparison with a file system, for example. The difference in resulting items we can observe now simply comes from the deviation-items that did not yet have the fortune of being selected for presentation by the user in that specific way.
Yes, agreed. On the other hand, we've already seen this discrepancy in the results of items from Favorites in the earlier tests. I guess this is caused by the lack of a real favorites gallery that actually contains any items. A user on the website adds items to the account's favorites section by a simple click (or drag-and-drop), and what actually gets created is just a simple reference to the item in the gallery of the user account that uploaded it in the first place. If the original uploader now moves, deletes or restricts access in any other way to the deviation-item in question, the reference in the favorites section of our other user still exists and does not get updated, creating this mismatch. This behavior can be observed on many other websites, DeviantArt is not the only "offender" here.
Absolutely right, that would work just as well, and I've used this "trick" (well, actually it's not, just basic scripting) before, although not with gallery-dl, I think. This is just about increasing convenience a bit.
But as I said, this can be disregarded, because it really is just a minor convenience thing. All options can still be added in the same step, and all that is missing now can be done with simple text-editing, like just putting Sorry for my walls of text again, but I'm not sure about opening a new issue for this, because I'd consider it rather low priority. So, it's up to you, I guess. And I definitely don't know enough about Python to make any judgement about how much work would be involved in getting from here to there, that is, using Edit: Not directly related, but might be relevant nonetheless: |
My initial ideas about this input-file feature were a lot more complicated and general, and involved JSON data structures and the like, which is why I suggested opening a separate issue ... I like over-complicating things, it seems. Nonetheless, (re-)parsing command-line options at the point in the program-flow where results of the Give it an input-file as argument and it should do what you described. Possible input-file format would be, for example
You might need to adjust the |
Okay, I agree, then it's the best to forget this for now, up until some other more pressing use case comes up, eventually. And the script you linked addresses this issue here just fine, so thank you for that! I've now changed my config to this:
Maybe someone else will also see it as being of any use... It relies on It should be something like this as a result,
|
Yeah, almost forgot: As far as I know, always using Just in case someone else stumbles upon this here... |
OS: Windows 10 x64 [Version 10.0.15063]
Python: 3.6.1 amd64
gallery-dl: git master
(Same error for different .deviantart.com/favourites URLs)
Error appears when setting directory, i.e. in
extractor.deviantart.favorite.directory
I tested it with
--ignore-config
, which seemed to work.So it has to be something in my config, here the part for DeviantArt:
(Without the part for Journals...)
Not sure if I get this right..
Well, the Favorites-subextractor should be used, and that's the same folder structure setting I've used in the past.
Not sure. Did something change with their API? Or did some recent commit changed the endpoint used, and I missed it somehow?
The text was updated successfully, but these errors were encountered: