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

Fix member id extraction and work with bookmarks #17

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

isbear
Copy link

@isbear isbear commented Aug 3, 2017

Fixes for:

  • circular reference warning (parameter member_id has the same name as accessor member_id)
  • fix already logged in session member_id detection
  • ignore 'my pixiv only' works in lists
  • some more fixes to bookmark list parsing

isbear added 6 commits August 3, 2017 22:21
> lib/pixiv/client.rb:57: warning: circular argument reference - member_id
If you have saved your cookie, on the next script run you'll get
already logged-in page, so, you need to populate @member_id.
Now it uses double-quotes instead of single-quotes
Use data-src attribute instead of src, since src without JS points to
trasparent.gif
@isbear
Copy link
Author

isbear commented Aug 3, 2017

P.S. Sorry, I am not yet familiar enough with rspec to fix the tests as well.

isbear added 3 commits August 4, 2017 02:02
Original image may have jpg or png extensions, while resized images
always have jpg extension, so we cannot use medium_image_url as a
reference to create original image url.
Code was not updated to work with new image_url_components and
produced garbage. Not sure, how the situation with file extensions,
but at least the url components are valid.
I am not interested currently in investigating this form of media
any further, so, I just added indicatior to skip these...
Copy link
Author

@isbear isbear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File extensions for manga are an issue. Will try to figure something out during the week.

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

Successfully merging this pull request may close these issues.

1 participant