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

Program no longer work #1

Closed
ApinkLoyalFan opened this issue Jun 1, 2018 · 5 comments
Closed

Program no longer work #1

ApinkLoyalFan opened this issue Jun 1, 2018 · 5 comments

Comments

@ApinkLoyalFan
Copy link

Hello there, there is recent changes by tistory and the program is no longer work to download original pictures

Can you fix it ?

Thank you

@Silenciuse
Copy link

Silenciuse commented Jun 4, 2018

Hi, the program no longer works due to tistory changing how their URLs work. The URLs are now formatted as: https://t1.daumcdn.net/cfile/tistory/996431505A4B6C1C38

I've discovered that to get the original image from these new URLs, you need to add "?original" to the end of the URL, instead of the previous method of changing "image" to "original".

Example: https://t1.daumcdn.net/cfile/tistory/996431505A4B6C1C38?original

I would also greatly appreciate an update to this program because it worked very well and is the only tistory downloader that exists.

Thanks

@Kagami
Copy link
Owner

Kagami commented Jun 4, 2018

Hi. Thanks for the report. I will look into it.

@Kagami
Copy link
Owner

Kagami commented Jun 5, 2018

t1.daumcdn.net links don't have Content-Disposition header set, it needs to be parsed from the page. Might be done but requires some architecture changes. Also links import/export won't work properly (unless added another field for filename, but old lists won't work anymore; though I'm not sure someone use that feature).

It's possible to get old cfile.uf.tistory.com links with propert Content-Disposition from xxx.tistory.com/sync/local/123 pages, but that's not documented anywhere and might be broken in future as well. Though format seems to be quite stable, it's probably just some kind of undocumented API response which doesn't require auth.

Lastly the proper way to parse image links should be via /apis/post/list and /apis/post/read API requests but it requires registration. I wasn't able to register at tistory because you need invitation for that. Also I can't find information about API rate limits so it might be quite unreliable to hardcode single access token.

The second option seems to be the simplest one, at least as a quick fix. Any thoughts?

@Kagami
Copy link
Owner

Kagami commented Jun 5, 2018

Hm, actually there is Content-Disposition header for https://t1.daumcdn.net/...?original types of links, just needed to set special option for aria2.

I think option 1 is better now but there are disadvantages too:

  • It can be only 16 concurrent downloads max because it's single server (aria2 limitation)
  • It's HTTPS so additional overhead

@Kagami Kagami closed this as completed in 9246e9a Jun 5, 2018
@Kagami
Copy link
Owner

Kagami commented Jun 5, 2018

Released 0.3.0. Please try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants