0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-25 20:55:17 +00:00

refactor some stuff

This commit is contained in:
Front 2022-03-03 20:21:11 -05:00
parent 5e1e6d7d82
commit d1658f2f34
2 changed files with 8 additions and 6 deletions

View file

@ -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) {

View file

@ -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>