mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-25 20:55:17 +00:00
refactor some stuff
This commit is contained in:
parent
5e1e6d7d82
commit
d1658f2f34
2 changed files with 8 additions and 6 deletions
|
@ -14,18 +14,20 @@ const module = {
|
|||
logs: new Array(),
|
||||
|
||||
//--- Get YouTube's Search Auto Complete ---//
|
||||
async autoComplete(text, callback) {
|
||||
const res = await Http.request({
|
||||
autoComplete(text, callback) {
|
||||
Http.request({
|
||||
method: 'GET',
|
||||
url: 'https://suggestqueries-clients6.youtube.com/complete/search',
|
||||
params: { client: 'youtube', q: text }
|
||||
})
|
||||
.then((res) => {
|
||||
logger("autoComplete", res);
|
||||
callback(res.data);
|
||||
})
|
||||
.catch((err) => {
|
||||
logger("autoComplete", err);
|
||||
callback(err);
|
||||
});
|
||||
logger("autoComplete", res);
|
||||
callback(res.data);
|
||||
},
|
||||
|
||||
search(text, callback) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="app_name">BetterTube</string>
|
||||
<string name="title_activity_main">BetterTube</string>
|
||||
<string name="app_name">VueTube</string>
|
||||
<string name="title_activity_main">VueTube</string>
|
||||
<string name="package_name">com.Frontesque.youtube</string>
|
||||
<string name="custom_url_scheme">com.Frontesque.youtube</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue