javinizer / Javinizer

(NSFW) Organize your local Japanese Adult Video (JAV) library
MIT License
606 stars 63 forks source link

BUG: Sorting/Searching with urls returns bad results #177

Closed jvlflame closed 3 years ago

jvlflame commented 3 years ago

Expected Behavior

Javinizer -Find 'https://www.dmm.co.jp/digital/videoa/-/detail/=/cid=24lid00041/?i3_ref=search&i3_ord=4'

Source        : dmmja
Url           : https://www.dmm.co.jp/digital/videoa/-/detail/=/cid=24lid00041/?i3_ref=search&i3_ord=4
Id            : LID-041
ContentId     : 24lid00041
Title         : しばられたい わたし、ただのオモチャで、いいんです。 あず希
Description   : 苦しい時ほど、感じてしまうのって…Mですか?【野外ニテ玩具デ放尿】制服の中にレオタード着用させ、麻縄を施し野外に連れ出して羞恥を煽ると興奮したのか股間を濡らし、バイブオナニーを指示する
                と激しいピストンに小便を垂れ流す。【風呂場ニテ強●フェラ】後手で拘束され、不自由な状態で陰茎を喉奥に突っ込まれたまま水を顔面にぶっ掛けられる拷問にも従順に対応し、献身的にチ●ポを扱き続
                け喉で精子を受け止める。【手ヲ緊縛ニテ交尾】腕を縛り恥ずかしいポーズの指示で羞恥を煽る。執拗な愛撫に感度が高まると腰を振り、首を絞めながらの激しい抜き差しに身体をビクつかせ昇天する。
                …ココロとカラダの縛りを全4編収録。
ReleaseDate   : 2016-12-02
ReleaseYear   : 2016
Runtime       : 106
Director      : R40
Maker         : ドリームチケット
Label         : ドリームチケット
Series        : しばられたい
Rating        : @{Rating=9; Votes=6}
Actress       : @{LastName=; FirstName=; JapaneseName=あず希; ThumbUrl=}
Genre         : {ハイビジョン, 単体作品, セーラー服, 放尿・お漏らし…}
CoverUrl      : https://pics.dmm.co.jp/digital/video/24lid00041/24lid00041pl.jpg
ScreenshotUrl : {https://pics.dmm.co.jp/digital/video/24lid00041/24lid00041jp-1.jpg, https://pics.dmm.co.jp/digital/video/24lid00041/24lid00041jp-2.jpg,
                https://pics.dmm.co.jp/digital/video/24lid00041/24lid00041jp-3.jpg, https://pics.dmm.co.jp/digital/video/24lid00041/24lid00041jp-4.jpg…}
TrailerUrl    : https://cc3001.dmm.co.jp/litevideo/freepv/2/24l/24lid041/24lid041_dmb_w.mp4

Current Behavior

Javinizer -Find 'https://www.dmm.co.jp/digital/videoa/-/detail/=/cid=24lid00041/?i3_ref=search&i3_ord=4'

Source        : javlibrary
Url           : https://www.dmm.co.jp/digital/videoa/-/detail/=/cid=24lid00041/?i3_ref=search&i3_ord=4
Id            :
AjaxId        :
Title         : - FANZA</title>
                <meta name="description" content="成人向けコンテンツを取り扱うアダルト総合サイト。18歳未満の方のアクセ
                スは固くお断りいたします。" >
                <meta name="robots" content="noindex,follow" >
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
                <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
                <meta http-equiv="content-style-type" content="text/css" >
                <meta http-equiv="content-script-type" content="text/javascript" >
                <meta name="application-name" content="FANZA" >
                <meta name="msapplication-tooltip" content="動画、DVD通販、ライブチャット等の総合サイト" >
                <meta name="msapplication-starturl" content="/top/" >
                <meta name="msapplication-window" content="width=1280;height=1024" >
                <meta name="msapplication-navbutton-color" content="#c20505" >
                <meta name="msapplication-task"
                content="name=動画サービス;action-uri=/digital/;icon-uri=//p.dmm.co.jp/p/common/pinned/task.ico" >
                <meta name="msapplication-task" content="name=DVD/CDレンタルサービス;action-uri=/rental/;icon-uri=//p.d
                mm.co.jp/p/common/pinned/task.ico" >
                <meta name="msapplication-task"
                content="name=通販サービス;action-uri=/mono/;icon-uri=//p.dmm.co.jp/p/common/pinned/task.ico" >
                <meta name="msapplication-task" content="name=ライブチャットサービス;action-uri=/live/chat/;icon-uri=//
                p.dmm.co.jp/p/common/pinned/task.ico" >
                <!--[if lt IE 9]><script type="text/javascript" charset="utf-8"
                src="/js/common/html5shiv.js"></script><![endif]-->
                <!--[if gte IE 9]> <link href="//p.dmm.co.jp/p/common/pinned/favicon.ico" rel="shortcut icon"
                ><![endif]-->
                <link href="//p.dmm.co.jp/p/common/pinned/favicon.ico" rel="shortcut icon" >
                <link href="/css/agecheck.css?1558660624" media="screen" rel="stylesheet" type="text/css" >
                <link href="/css/base.css?1606709431" media="screen" rel="stylesheet" type="text/css" >
                <link href="/css/www.dmm.co.jp.top.css?1570692025" media="screen" rel="stylesheet" type="text/css" >
                <link href="//p.dmm.co.jp/p/apple-touch-icon.png" rel="apple-touch-icon" >
                <link href="//p.dmm.co.jp/p/apple-touch-icon.png" rel="apple-touch-icon-precomposed" >
                <script type="text/javascript" src="/js/library/jquery_1_8_3/jquery-1.8.3.min.js?1358679782"></script>
                <script type="text/javascript" src="/js/localize_welcome.js?1461295258"></script>
                <script type="text/javascript" src="/js/common/set_tracking.js?1463477665"></script>
                <style type="text/css" media="screen">
                <!--
                .rst * {
                    margin:0;
                    padding:0;
                }
                #page {
                    text-align:center;
                }
                #content {
                    width:750px;
                    margin:30px auto 24px;
                }
                .capt01 {
                    color:#c00;
                    font-weight:bold;
                    font-size:20px;
                }
                .sect01 {
                    margin:9px 24px 24px;
                    padding:24px;
                    border-top:1px #bbb solid;
                    border-bottom:1px #bbb solid;
                }
                .capt02 {
                    font-weight:bold;
                    font-size:16px;
                }
                .sect01 p {
                    margin-bottom:18px;
                }
                .sect01 li {
                    list-style:none;
                    display:inline;
                }
                .sect01 .first {
                    margin-right:36px;
                }

                -->
                </style>
                <script src="/js/s_code_dummy.js"></script>
                <script src="/js/mbox.js"></script><script>
                  var _gaq = _gaq || [];
                  _gaq.push(
                    ['_setAccount', 'UA-31336-2'],
                    ['_setDomainName', '.dmm.co.jp'],
                    ['_setSampleRate', '10'],
                    ['_setCampaignCookieTimeout', 2592000000],
                    ['_trackPageview', '/age_check/=/?rurl=http%3A%2F%2Fwww.dmm.co.jp%2Fdigital%2Fvideoa%2F-%2Fdetail%2
                F%3D%2Fcid%3D24lid00041%2F%3Fi3_ref%3Dsearch%26amp%3Bi3_ord%3D4']
                  );
                  (function() {
                    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') +
                'stats.g.doubleclick.net/dc.js';
                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                  })();
                </script>

                <link rel="preload" href="https://navismithapis-cdn.com/css/pc/min.css?v=2.10.20" as="style">
                <link rel="stylesheet" href="https://navismithapis-cdn.com/css/pc/min.css?v=2.10.20"><script
                src="https://navismithapis-cdn.com/js/pigeon.js?v=2.10.20" crossorigin="anonymous" id="naviapi-pigeon"
                data-env="prod" data-version="v2" data-site-type="adult" data-view-type="pc" defer></script>
                <script>
                  window.NAVIAPI_SENTRY_SDK = {
                    url: 'https://cdn.ravenjs.com/3.26.4/raven.min.js',
                    dsn: 'https://7b4c121c73554e01abca69630a2a03f3@sentry.io/235788',
                    options: {
                      release: '2.10.20',
                      environment: 'prod',
                      whitelistUrls: [/https:\/\/navismithapis-cdn\.com/],
                      tags: {
                        service: 'top',
                        siteType: 'r18',
                        deviceType: 'pc'
                      },
                      autoBreadcrumbs: {
                        console: false
                      }
                    }
                  }
                  ;(function(a,b,g,e,h){var k=a.NAVIAPI_SENTRY_SDK,f=function(a){f.data.push(a)};f.data=[];var
                l=a[e];a[e]=function(c,b,e,d,h){f({e:[].slice.call(arguments)});l&&l.apply(a,arguments)};var
                m=a[h];a[h]=function(c){f({p:c.reason});m&&m.apply(a,arguments)};var n=b.getElementsByTagName(g)[0];b=b
                .createElement(g);b.src=k.url;b.crossorigin="anonymous";b.addEventListener("load",function(){try{a[e]=l
                ;a[h]=m;var c=f.data,b=a.Raven;b.config(k.dsn,k.options).install();var g=a[e];if(c.length)for(var d=0;d
                <c.length;d++)c[d].e?g.apply(b.TraceKit,c[d].e):c[d].p&&b.captureException(c[d].p)}catch(p){console.log
                (p)}});n.parentNode.insertBefore(b,n)})(window,document,"script","onerror","onunhandledrejection");
                </script><script type="text/javascript" src="https://dmm-extension.com/js/sys-support-dp.js"
                charset="UTF-8" crossorigin="anonymous"></script>
                </head>

                <body name="dmm_main"  class="d-body-mg0">
                <!--[if IE 7]><div id="d-ie7"><![endif]-->

                <div id="translate_welcome_div"></div>
                <script type="text/javascript">
                  document.getElementById('translate_welcome_div').setAttribute('id', 'welcome');
                </script>

                <div id="tracking_area">
                <!-- i3 tag -->
                <input id="i3_opnd" name="i3_opnd" type="hidden" value="">
                <input id="i3_vwtp" name="i3_vwtp" type="hidden" value="pc">
                <script>
                !function(a,b,c,d,e,f,g,h,i,j,k){g="DMMi3Object",h=a[g],a[g]=e,h&&(a[e]=a[h]),
                a[e]=a[e]||function(){i=arguments[arguments.length-1],"function"==typeof i&&setTimeout(
                function(b,c){return function(){a[e].q.length>b&&c()}}(a[e].q.length,i),f),a[e].q.push(
                arguments)},a[e].q=a[e].q||[],a[e].t=f,j=b.createElement(c),k=b.getElementsByTagName(c)[0],
                j.async=1,j.src=d,j.charset="utf-8",k.parentNode.insertBefore(j,k),a[e].s=~~new Date
                }(window,document,"script","//stat.i3.dmm.com/latest/js/dmm.tracking.min.js?202010151450","i3",2000);
                i3('init','i3_hdvroh');
                i3('create');
                i3('send', 'view', 'page');
                </script><!-- Google Tag Manager DataLayer-->
                <script>
                (function() {
                if (!window["Marketing"]) { window.Marketing = {}; }
                var j={"host":"www.dmm.co.jp","device":"pc"};
                window.Marketing.Gateway = { getParam: function(k) { if (!k) { return j; } return j[k]; } };})();
                window.dataLayer = window.dataLayer || [];
                dataLayer.push({"dtm":{"viewLayout":"pc","isForeign":0}});
                </script><!-- Google Tag Manager snippet-->
                <script>
                (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
                })(window,document,'script','dataLayer','GTM-JLBT'); // GTM from TagAPI
                </script><!-- Google Tag Manager snippet(noscript) -->
                <noscript>
                <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-JLBT"
                height="0" width="0" style="display:none;visibility:hidden"></iframe>
                </noscript><script>
                var trackingTagApi = trackingTagApi || {};
                trackingTagApi.environment = 'production';
                </script>
                <script>
                var _mtm = _mtm || [];
                var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
                g.type='text/javascript'; g.async=true; g.defer=true;
                g.src='https://cdn.dtm.dmm.co.jp/tagmanager_v1.js'; s.parentNode.insertBefore(g,s);
                </script></div>

                <div id="w">

                <div id="dm-content">
                  <main>
                    <div class="ageCheck">
                      <h1 class="ageCheck__heading">年齢認証</h1>
                      <h2 class="ageCheck__subHeading">あなたは18歳以上ですか?</h2>
                      <p class="ageCheck__desc">ここから先は、アダルト商品を扱うアダルトサイトとなります。<br>18歳未満
                の方のアクセスは固くお断りします。</p>
                        <div class="ageCheck__btnBox">
                            <div class="ageCheck__btn">
                                <a
                href="https://www.dmm.co.jp/age_check/=/declared=no/rurl=DRVESRUMTh1PEkYWV1sLGQIKWw__/"
                class="ageCheck__link ageCheck__link--com">
                                <p class="ageCheck__linkText">いいえ</p>
                                </a>
                            </div>
                            <div class="ageCheck__btn">
                              <a href="https://www.dmm.co.jp/age_check/=/declared=yes/?rurl=http%3A%2F%2Fwww.dmm.co.jp%
                2Fdigital%2Fvideoa%2F-%2Fdetail%2F%3D%2Fcid%3D24lid00041%2F%3Fi3_ref%3Dsearch%26amp%3Bi3_ord%3D4"
                class="ageCheck__link ageCheck__link--r18">
                                <p class="ageCheck__linkText">はい</p>
                              </a>
                            </div>
                        </div>
                                <a href="https://www.dmm.co.jp/service/-/exchange/?url=https%3A%2F%2Fpayment.dmm.com%2F
                creditcard%3Fid%3Dagecheck">
                            <img src="https://p.dmm.co.jp/p/top/banner/creditcard_agecheck_pc.jpg" />
                        </a>

                    </div>
                  </main>
                </div>
                </div>

                <footer class="_n4v1-footer"><div class="_n4v1-copyright">Copyright &copy; since 1998 DMM All Rights
                Reserved.</div></footer>
                <!--[if IE 7]></div><![endif]-->
                </body>
                </html>
ReleaseDate   :
ReleaseYear   :
Runtime       :
Director      :
Maker         :
Label         :
Rating        : @{Rating=; Votes=}
Actress       :
Genre         :
CoverUrl      : https:
ScreenshotUrl :

Steps to Reproduce (for bugs)

Run Javinizer -Find or Javinizer -Path -Url

Your Environment

jvlflame commented 3 years ago

For a temporary fix, you can modify one of the functions.

# Open the module folder
ii (Join-Path (Get-InstalledModule javinizer).Installedlocation -ChildPath 'Private')

Open Get-JVUrlLocation.ps1 with a text editor and modify line 26. Remove the lone -or $link condition. image

Then restart your shell and it should work properly