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

Option Proxy seems like not working #10

Open
x7v4mibui opened this issue Apr 20, 2024 · 3 comments
Open

Option Proxy seems like not working #10

x7v4mibui opened this issue Apr 20, 2024 · 3 comments

Comments

@x7v4mibui
Copy link

x7v4mibui commented Apr 20, 2024

Code:

<!doctype html> <!-- i think this is not related with issue, look JS code block below -->
<html lang="">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>YouTube Music</title>
  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" href="css/youtubemusic.css">
  <meta name="description" content="">

  <meta property="og:title" content="YouTube Music">
  <meta property="og:site_name" content="YouTube Music">
  <meta name="description" content="Unofficial YouTube Music Web">
  <meta property="og:type" content="website">
  <!--
  <meta property="og:url" content="https://music.youtube.com/">
  <meta property="al:ios:app_name" content="YouTube Music">
  <meta property="al:android:app_name" content="YouTube Music">
  <meta name="twitter:url" content="https://music.youtube.com/">
  <meta name="twitter:app:name:iphone" content="YouTube Music">
  <meta name="twitter:app:name:ipad" content="YouTube Music">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="">
  -->

  <link rel="icon" href="https://music.youtube.com/favicon.ico" sizes="16x16" type="image/x-icon">
  <link rel="icon" href="https://music.youtube.com/img/favicon_32.png" sizes="32x32" type="image/png">
  <link rel="icon" href="https://music.youtube.com/img/favicon_48.png" sizes="48x48" type="image/png">
  <link rel="icon" href="https://music.youtube.com/img/favicon_96.png" sizes="96x96" type="image/png">
  <link rel="icon" href="https://music.youtube.com/img/favicon_144.png" sizes="144x144" type="image/png">
  <link rel="apple-touch-icon" href="https://music.youtube.com/img/favicon_96.png">

  <link rel="manifest" href="youtubemusic.webmanifest">
</head>

<body>

<p>Hellified world!</p>



<script src="js/youtubemusic.js" type="module"></script>
</body>
</html>
//import { search, set_option } from "https://esm.sh/[email protected]";
//import { search, set_option } from "https://jspm.dev/npm:[email protected]";
//import { search, set_option } from "https://cdn.skypack.dev/[email protected]";
import * as muse from "https://esm.sh/[email protected]";
muse.set_option("proxy", "http://45.32.254.253:8000/"); // VPS Running(deleted now): https://raw.githubusercontent.com/justjavac/deno_deploy_cors_proxy/main/main.ts

muse.search("top radio").then(data => {
  console.log("search results", data);
});

image

tested on 0.0.97 and 0.0.31
@Doctorthe113
Copy link

I am having the same issue too.

@x7v4mibui
Copy link
Author

x7v4mibui commented Apr 21, 2024

tried to block connect music.youtube.com(and more)
I think use_proxy(url): string(URL) should be also in FetchClient, but it is not.

error: Uncaught (in promise) PermissionDenied: Requires net access to "music.youtube.com", run again with the --allow-net flag
    return fetch(url, {
    at FetchClient.do_request (https://deno.land/x/[email protected]/request.ts:52:12)
    at FetchClient.request (https://deno.land/x/[email protected]/request.ts:133:33)
    at load_visitor_id (https://deno.land/x/[email protected]/mixins/_request.ts:16:51)
    at request (https://deno.land/x/[email protected]/mixins/_request.ts:36:9)
    at async request_json (https://deno.land/x/[email protected]/mixins/_request.ts:88:20)
    at async search (https://deno.land/x/[email protected]/mixins/search.ts:293:22)

@vixalien
Copy link
Owner

You're correct. The proxy option hasn't worked in a while. I'll be working on it though.

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