James C. Wise

Results 38 comments of James C. Wise

Having the same issue almost 5 and a half years later It seems that having `abc.py` contain the `FTPServer` object and having `xyz.py` import it and call `threading.Thread(target=abc.server.serve_forever).start()` causes the...

I assume the idea behind copy/pasting being unlocked (as well as it having a cost) is to make sure the player appreciates just how *big* it is. And while I...

1. GitHub really needs to support more emojis for reactions 2. Use https://megatools.megous.com for now

I thought it might've been possible to do this with `"{'.' if retweet_id==0 else 'Retweets'}"` but [the function that handles this](https://github.com/mikf/gallery-dl/blob/d09bc5bd3462b75a784c8406c549e1c1858f9852/gallery_dl/util.py#L599) doesn't actually use fstrings, probably to avoid arbitrary code...

> `"{retweet_id:?//L0/Retweets/}"` seems to work. Care to explain how on earth that works and how you managed to come up with it? I am *very* confused This feels like it...

It was implemented [one commit after 1.18.0](https://github.com/mikf/gallery-dl/commit/fd00d47116d53e64fcfb6cd5f8483da4bf683f06) You'll want to overwrite `C:/Python39/Lib/site-packages/gallery_dl/util.py` with [this version of util.py](https://github.com/mikf/gallery-dl/blob/fd00d47116d53e64fcfb6cd5f8483da4bf683f06/gallery_dl/util.py)

You can use `retweets: true` and replace the `{user[name]}` in `filename` with `{author[name]}`

Did some testing and it seems the post I'm having issues with (which I won't post since it's NSFW) managed to put a link at the bottom that isn't caught...

So near the bottom of the view-source of each deviation is a line that starts with `window.__INITIAL_STATE__ = JSON.parse(`. In there is the sta.sh link that gallery-dl doesn't normally get...

It's possible there's an edge case where, for example, one site has `user` be your username and another has `user` be the person being downloaded But until someone runs into...