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

Danbooru seem to be only returning its source URL? #12

Closed
BobbyWibowo opened this issue Mar 21, 2018 · 1 comment
Closed

Danbooru seem to be only returning its source URL? #12

BobbyWibowo opened this issue Mar 21, 2018 · 1 comment
Labels

Comments

@BobbyWibowo
Copy link
Contributor

Did the site go even more gei or ...?

Example result after commonfy():

[ { id: 968062,
  created_at: '2011-08-04T04:14:03.724-04:00',
  uploader_id: 34945,
  score: 10,
  source: 'http://img01.pixiv.net/img/michael/20819382.jpg',
  last_comment_bumped_at: '2011-08-04T15:21:16.810-04:00',
  rating: 'e',
  image_width: 800,
  image_height: 1025,
  tag_string: '1girl apron apron_lift bad_id bad_pixiv_id black_hair blush brown_eyes censored fingering loli masturbation mika-shi naked_apron nude original pussy pussy_juice ribbon short_hair solo twintails',
  is_note_locked: false,
  fav_count: 7,
  last_noted_at: '2011-08-04T08:14:46.811-04:00',
  is_rating_locked: false,
  parent_id: null,
  has_children: false,
  approver_id: null,
  tag_count_general: 18,
  tag_count_artist: 1,
  tag_count_character: 0,
  tag_count_copyright: 1,
  file_size: 381008,
  is_status_locked: false,
  fav_string: 'fav:63434 fav:13038 fav:377489 fav:415533 fav:389227 fav:429003 fav:361142',
  pool_string: '',
  up_score: 6,
  down_score: 0,
  is_pending: false,
  is_flagged: false,
  is_deleted: false,
  tag_count: 22,
  updated_at: '2017-01-06T12:27:42.935-05:00',
  is_banned: false,
  pixiv_id: 20819382,
  last_commented_at: '2011-08-04T15:21:16.810-04:00',
  has_active_children: false,
  bit_flags: 0,
  tag_count_meta: 2,
  keeper_data: null,
  uploader_name: 'Monki',
  has_large: false,
  has_visible_children: false,
  children_ids: null,
  tag_string_general: '1girl apron apron_lift black_hair blush brown_eyes censored fingering loli masturbation naked_apron nude pussy pussy_juice ribbon short_hair solo twintails',
  tag_string_character: '',
  tag_string_copyright: 'original',
  tag_string_artist: 'mika-shi',
  tag_string_meta: 'bad_id bad_pixiv_id',
  common: 
   { file_url: 'http://img01.pixiv.net/img/michael/20819382.jpg',
     id: '968062',
     tags: [Array],
     score: 10,
     source: 'http://img01.pixiv.net/img/michael/20819382.jpg',
     rating: 'e' } } ]
@AtoraSuunva
Copy link
Owner

It's intended behavior

https://github.com/AtlasTheBot/booru/blob/master/index.js#L231

Danbooru sometimes just doesn't return a file_url to use, so it's substituted with the source since it only appears to happen when the source is an image.

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

No branches or pull requests

2 participants