Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Bug: Downloading from yande.re saves an HTML document #160

@Sonico98

Description

@Sonico98

Type

Booru parser issues

Bug description

Trying to save any picture from yande.re (sample or original quality, doesn't matter) saves an HTML file instead. The picture loads perfectly fine in the viewer.

Steps to reproduce

  1. Open yande.re, then open any picture.
  2. Tap on the download button, choose any quality option.
  3. A file gets saved with the correct file name and extension. However, its size is only a few kb as it's actually an HTML document.

Android version

Android 14

App version

1.4.4 armeabi-v7a

Screenshots or videos

demo.mp4

Solution

No response

Additional context

<!DOCTYPE html>
<html class="action-post action-post-show hide-advanced-editing">
<head>
  <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
  <title>tokidoki bosotto roshia-go de dereru tonari no arya-san kimishima ayano seifuku tagme valentine | #1181653 | yande.re</title>
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
  <link rel="top" title="yande.re" href="/">
    <link rel="canonical" href="https://yande.re/post/show/1181653" />
  <script type="text/javascript">
    var css = ".javascript-hide { display: none !important; }";
    var style = document.createElement("style"); style.type = "text/css";
    if(style.styleSheet) // IE
      style.styleSheet.cssText = css;
    else
      style.appendChild(document.createTextNode(css));
    document.getElementsByTagName("head")[0].appendChild(style);
  </script>

    <meta property="og:title" content="tokidoki bosotto roshia-go de dereru tonari no arya-san kimishima ayano seifuku tagme valentine | #1181653 | yande.re" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://yande.re/post/show/1181653" />
<meta property="og:image" content="https://files.yande.re/sample/947f402f2b911b50c685e739e6388460/yande.re%201181653%20sample%20kimishima_ayano%20seifuku%20tagme%20tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san%20valentine.jpg" />
<meta property="og:site_name" content="yande.re" />
<meta property="og:description" content="kimishima_ayano seifuku tagme tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san valentine" />
<link rel="image_src" href="https://files.yande.re/sample/947f402f2b911b50c685e739e6388460/yande.re%201181653%20sample%20kimishima_ayano%20seifuku%20tagme%20tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san%20valentine.jpg" />
<meta name="twitter:card" content="summary_large_image" />

  <link rel="alternate" type="application/atom+xml" title="ATOM" href="https://yande.re/post/atom?tags=" />
  <link rel="stylesheet" href="https://assets.yande.re/assets/application-872295366f64e8f676571f397cb1ba2cba9c567341a9d273433e31ec5f405a8e.css" />

  <script id="user-blacklisted-tags" type="application/json">
    ["extreme_content","rating:e"]
  </script>

  <script type="text/javascript">
    window.locale = {
      current: "en",
      default: "en",
    }
  </script>

  <script src="https://assets.yande.re/assets/application_classic-235ec31087b8915268055065472ee9fe5fd4be45ae482e55bb3af61d678b9752.js"></script>
  <script src="https://assets.yande.re/assets/application-05e02d404073b15173764b04e666ff937ca747de0cef92c7a6fc6ed6ce0b5b7d.jsout"></script>

  <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="yande.re" />
  
  <meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="ILiaUbCV80FzijUq3RCzFmH5blx8fl593NrMbLqO_N8lWailMbn8UCA4BX8RKlwLsaViL1Ui7_31XUnhP4agZw" />
  <meta name="juicyads-site-verification" content="a42ccc8181bc457cfad43695b47609d8">
  <meta name="clckd" content="ca7848b3d8df49a04183874ab5d60e23" />
</head>
<body>
  <div class="overlay-notice-container" id="notice-container" style="display: none;">
  <table cellspacing=0 cellpadding=0> <tbody>
    <tr> <td>
      <div id="notice">
      </div>
    </td> </tr>
  </tbody> </table>
</div>

      <div id="news-ticker" style="" data-date="20201219">
  <ul>
    <li>Try clearing out cookies of you have problem logging in/out.</li>
  </ul>

  <a href="#" class="close-link">Close</a>
</div>

  <div id="header">
    <div id="title"><h2 id="site-title"><a href="https://yande.re"><img alt="yande.re" id="logo" src="https://assets.yande.re/assets/logo_small-418e8d5ec0229f274edebe4af43b01aa29ed83b715991ba14bb41ba06b5b57b5.png" width="484" height="75" /></a><span></span></h2></div>
    <div class="clearfix" id="main-menu" data-controller="post">
    <ul>
      <li class="user"><a href="/user/home">My Account</a>
        <a class="submenu-button" href="#"></a>
        <ul class="submenu">
            <li><a id="login-link" class="login-button" href="/user/login">Login</a></li>
            <li><a href="/user/signup"><span class="translation_missing" title="translation missing: en.layouts.menu.account.register">Register</span></a></li>
            <li><a href="/user/reset_password">Reset Password</a></li>
        </ul>
      </li>
      <li class="post"><a href="/post">Posts</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/post" accept-charset="UTF-8" method="get">
                <input type="text" name="tags" /><br />
                <input type="submit" value="Search Posts" data-disable-with="Search Posts" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/post">View Posts</a></li>
          <li><a class="search-link" href="/post">Search Posts</a></li>
          <li><a href="/post/upload">Upload</a></li>
          <li><a href="/post?tags=order%3Arandom">Random</a></li>
          <li><a href="/post/popular_recent">Popular</a></li>
          <li><a href="/post/similar">Image Search</a></li>
          <li><a href="/history">History</a></li>
        </ul>
      </li>
      <li class="comment"><a id="comments-link" href="/comment">Comments</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/comment/search" accept-charset="UTF-8" method="get">
                <input type="text" name="query" /><br />
                <input type="submit" value="Search Comments" data-disable-with="Search Comments" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/comment">View Comments</a></li>
          <li><a class="search-link" href="/comment/search">Search Comments</a></li>
        </ul>
      </li>
      <li class="note"><a href="/note">Notes</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/note/search" accept-charset="UTF-8" method="get">
                <input type="text" name="query" /><br />
                <input type="submit" value="Search Notes" data-disable-with="Search Notes" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/note">View Notes</a></li>
          <li><a class="search-link" href="/note/search">Search Notes</a></li>
          <li><a href="/post?tags=translation_request">Requests</a></li>
        </ul>
      </li>
      <li class="artist"><a href="/artist?order=date">Artists</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/artist" accept-charset="UTF-8" method="get">
                <input type="text" name="name" /><br />
                <input type="submit" value="Search Artists" data-disable-with="Search Artists" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/artist">View Artists</a></li>
          <li><a class="search-link" href="/artist">Search Artists</a></li>
          <li><a href="/artist/create">Create</a></li>
        </ul>
      </li>
      <li class="tag"><a href="/tag?order=date">Tags</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/tag" accept-charset="UTF-8" method="get">
                <input type="text" name="name" /><br />
                <input type="submit" value="Search Tags" data-disable-with="Search Tags" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/tag">View Tags</a></li>
          <li><a class="search-link" href="/tag">Search Tags</a></li>
          <li><a href="/tag/popular_by_day">Popular</a></li>
          <li><a href="/tag_alias">Aliases</a></li>
          <li><a href="/tag_implication">Implications</a></li>
        </ul>
      </li>
      <li class="pool"><a href="/pool">Pools</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/pool" accept-charset="UTF-8" method="get">
                <input type="text" name="query" /><br />
                <input type="submit" value="Search Pools" data-disable-with="Search Pools" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/pool">View Pools</a></li>
          <li><a class="search-link" href="/pool">Search Pools</a></li>
          <li><a href="/pool/create">Create New Pool</a></li>
        </ul>
      </li>
      <li class="wiki"><a href="/wiki/show?title=help%3Ahome">Wiki</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/wiki" accept-charset="UTF-8" method="get">
                <input type="text" name="query" /><br />
                <input type="submit" value="Search Wiki" data-disable-with="Search Wiki" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/wiki">View Wiki Index</a></li>
          <li><a class="search-link" href="/wiki">Search Wiki</a></li>
          <li><a href="/wiki/add">Create New Page</a></li>
        </ul>
      </li>
      <li class="forum"><a id="forum-link" href="/forum">Forum</a>
        <a class="submenu-button" href="#"></a>
        <ul class="search-box">
          <li>
            <div>
              <form action="/forum/search" accept-charset="UTF-8" method="get">
                <input type="text" name="query" /><br />
                <input type="submit" value="Search Forums" data-disable-with="Search Forums" />
</form>            </div>
          </li>
        </ul>
        <ul class="submenu">
          <li><a href="/forum">View Topics</a></li>
          <li><a class="search-link" href="/forum">Search Forums</a></li>
          <li><a href="/forum/new">New Topic</a></li>
          <li><a id="forum-mark-all-read" style="display: none;" href="/forum/mark_all_read">Mark All Read</a></li>
          <li class="forum-items-start"><span class="separator"></span></li>
        </ul>
      </li>
      <li class="help"><a href="/help">Help</a>
        <a class="submenu-button" href="#"></a>
        <ul class="submenu">
            <li><a class="help-item post" href="/help/posts">Post Help</a>
            <li><a class="help-item comment" href="/help/comments">Comment Help</a>
            <li><a class="help-item note" href="/help/notes">Note Help</a>
            <li><a class="help-item artist" href="/help/artists">Artist Help</a>
            <li><a class="help-item tag" href="/help/tags">Tag Help</a>
            <li><a class="help-item pool" href="/help/pools">Pool Help</a>
            <li><a class="help-item wiki" href="/help/wiki">Wiki Help</a>
            <li><a class="help-item forum" href="/help/forum">Forum Help</a>
          <li><a href="/help">Site Help</a></li>
        </ul>
      </li>
      <li class="static"><a href="/static/more">More »</a>
      </li>
      <li class="has-mail">
        <a id="has-mail-notice" href="/dmail/inbox">New Mail</a>
      </li>
    </ul>
</div>

<script id="forum-posts-latest" type="application/json">
  [{"id":34339,"pages":1,"title":"Tag inconsistencies","updated_at":"2024-07-05T21:20:02.030Z"},{"id":22496,"pages":12,"title":"Empty pools, Wiki vandalism, cleaning up the mess etc","updated_at":"2024-06-27T07:06:50.773Z"},{"id":34255,"pages":1,"title":"Consecutive Uploads","updated_at":"2024-06-24T14:05:57.207Z"},{"id":34285,"pages":1,"title":"A.I is a game-changer for editing images!","updated_at":"2024-06-13T16:46:22.657Z"},{"id":34334,"pages":1,"title":"I can't download images.","updated_at":"2024-06-05T11:52:31.589Z"},{"id":34332,"pages":1,"title":"手机端看不了R18,清空缓存和cookie也是一样,有没有办法","updated_at":"2024-05-29T03:23:42.463Z"},{"id":31550,"pages":6,"title":"Why I get 100 KB/s download speed from this site again?","updated_at":"2024-05-27T21:25:54.371Z"},{"id":10527,"pages":207,"title":"Scans of tutorial books","updated_at":"2024-05-26T23:34:46.600Z"},{"id":22465,"pages":11,"title":"Tag aliases, implications, renames etc. requests thread","updated_at":"2024-05-21T16:22:08.042Z"},{"id":34316,"pages":1,"title":"What's happening?","updated_at":"2024-05-19T09:01:23.914Z"}]
</script>

  </div>
  
<div id="login-background" style="display: none;">&nbsp;</div>

<div id="login-container" style="display: none;">
  <div id="login-container-inner">
    <div id="login-container-with-tabs">
      <div>
        <ul class="flat-list login-tabs" id="login-tabs">
        <li id="tab-login"><a href="#">Login</a></li>
        <li id="tab-reset"><a href="#">Reset Password</a></li>
        </ul>
      </div>
      <div id="login" style="position: relative;">
        <p id="tab-login-text" class="tab-header-text">
          Please log in. To create a new account, enter the name and password you want to use.
        </p>
        <p id="tab-reset-text" class="tab-header-text">
          If you supplied an email address when you signed up or added a email later, you can have your password reset.
        </p>

        <form id="login-popup" action="/user/authenticate" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="9OLw2VGk5qhAp-BeF2BEmXZ-5-pvTCGM1Qie9VPQq981wg_RkxzBy9QIdcbTv6MBTnT3-Ytjbe1HfxqrqnVzbA" autocomplete="off" />
          <div style="position: absolute; top: 0; right: 0;">
            <a href="#" id="login-popup-cancel" style="font-size: 1.2em; padding: 2px;"></a>
          </div>

          <table class="form" style="width: 80%; max-width: 30em; margin-bottom: .5em; margin-left: auto; margin-right: auto;">
            <tr>
              <th style="width: 8em"><label class="block" for="login-popup-username">Name</label></th>
              <td style="width: 10em" align=left><input id="login-popup-username" name="username" type="text" style="width: 100%;"></td>
            </tr>
            <tr id="login-popup-email-box">
              <th><label class="block" for="login-popup-email">Email</label></th>
              <td align=left><input id="login-popup-email" name="email" type="text" style="width: 100%;"></td>
            </tr>
            <tr id="login-popup-password-box">
              <th><label class="block" for="login-popup-password">Password</label></th>
              <td align=left><input id="login-popup-password" name="password" type="password" style="width: 100%;"></td>
            </tr>
            <tr id="login-popup-password-confirm-box" style="display: none;">
              <th><label class="block" for="login-popup-password-confirm">Confirm Password</label></th>
              <td align=left><input id="login-popup-password-confirm" name="password-confirm" type="password" style="width: 100%;"></td>
            </tr>
            <tr>
              <th style="background: none;"></th>
              <td align=left>
              </td>
            </tr>
          </table>
          <a href="#" id="login-popup-submit" style="margin-bottom: 1em; margin-left: auto; margin-right: auto;">Login</a>
</form>
        <div id="login-popup-notices" class="login-popup-notice">
          <span id="login-popup-login-confirm-password">
            This user name doesn&#39;t exist.  If you want to create a new account, just verify your password and log in.
          </span>
          <span id="login-popup-login-user-exists">
            This user name exists.  If you want to create a new account, please choose a different name.
          </span>
          <span id="login-popup-reset-user-exists">
            Enter the current email address you have registered in your profile.  You&#39;ll get an email containing your new password.
          </span>
          <span id="login-popup-reset-user-has-no-email">
            You have no email address in your profile, so you can&#39;t have your password reset.
          </span>
          <span id="login-popup-reset-successful">
            Password reset. Check your email in a few minutes
          </span>
          <span id="login-popup-reset-unknown-user">
            That account does not exist.
          </span>
          <span id="login-popup-reset-blank">
          </span>
          <span id="login-popup-reset-user-email-incorrect">
            The email address specified is not registered with this account.
          </span>
          <span id="login-popup-reset-user-email-invalid">
            Delivery to this email address has failed.
          </span>
          <span id="login-popup-message">
          </span>
        </div>
      </div>
    </div>

  </div>
</div>

<script type="text/javascript">document.observe("dom:loaded", function() { User.init(); });</script>



  <!--[if lt IE 7]>
  <div style="display: none;" id="old-browser">Your browser is very old, and this site will not display properly.
    Please consider upgrading to a more recent web browser:
    <a href="http://www.mozilla.com/firefox/">Firefox</a>,
    <a href="http://www.opera.com/">Opera</a>,
    <a href="http://www.microsoft.com/windows/internet-explorer/download-ie.aspx">Internet Explorer</a>.
    <div style="text-align: right;" id="old-browser-hide">
      <a href="#" onclick='$("old-browser").hide(); Cookie.put("hide-ie-nag", "1");'>(hide this message)</a>
    </div>
  </div>
  <![endif]-->
  <div class="overlay-notice-container" id="notice-container" style="display: none;">
  <table cellspacing=0 cellpadding=0> <tbody>
    <tr> <td>
      <div id="notice">
      </div>
    </td> </tr>
  </tbody> </table>
</div>


  <div class="blocked" id="block-reason" style="display: none;">
  </div>

  <div id="content">
    <div id="post-view">
      <script type="text/javascript"> Post.register_resp({"posts":[{"id":1181653,"tags":"kimishima_ayano seifuku tagme tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san valentine","created_at":1720278609,"updated_at":1720278609,"creator_id":60368,"approver_id":null,"author":"sorafans","change":6033254,"source":"https://roshidere.com/special/Valentine.html?lang=ja","score":18,"md5":"947f402f2b911b50c685e739e6388460","file_size":1701466,"file_ext":"jpg","file_url":"https://files.yande.re/image/947f402f2b911b50c685e739e6388460/yande.re%201181653%20kimishima_ayano%20seifuku%20tagme%20tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san%20valentine.jpg","is_shown_in_index":true,"preview_url":"https://assets.yande.re/data/preview/94/7f/947f402f2b911b50c685e739e6388460.jpg","preview_width":69,"preview_height":150,"actual_preview_width":138,"actual_preview_height":300,"sample_url":"https://files.yande.re/sample/947f402f2b911b50c685e739e6388460/yande.re%201181653%20sample%20kimishima_ayano%20seifuku%20tagme%20tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san%20valentine.jpg","sample_width":692,"sample_height":1500,"sample_file_size":225234,"jpeg_url":"https://files.yande.re/image/947f402f2b911b50c685e739e6388460/yande.re%201181653%20kimishima_ayano%20seifuku%20tagme%20tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san%20valentine.jpg","jpeg_width":1179,"jpeg_height":2556,"jpeg_file_size":0,"rating":"s","is_rating_locked":false,"has_children":false,"parent_id":null,"status":"active","is_pending":false,"width":1179,"height":2556,"is_held":false,"frames_pending_string":"","frames_pending":[],"frames_string":"","frames":[],"is_note_locked":false,"last_noted_at":0,"last_commented_at":0}],"pool_posts":[],"pools":[],"tags":{"kimishima_ayano":"character","seifuku":"general","tagme":"general","tokidoki_bosotto_roshia-go_de_dereru_tonari_no_arya-san":"copyright","valentine":"general"},"votes":{}}); </script>

    

  <div class="status-notice" style="displ

Acknowledgements

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions