Skip to content

Commit

Permalink
Correction on Youtube Scrape Server request protocol - http to `h…
Browse files Browse the repository at this point in the history
…ttps` - `http` triggered errors on Release App
  • Loading branch information
Darguima committed May 4, 2022
1 parent aaa3a7d commit ed7dd2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ SpotHack is a project where you can convert your Spotify Playlists to .mp3 files

You can download this App in the Releases or build the code with some changes that you may want.

* [Download APK](https://github.com/Darguima/SpotHack/releases/download/v1.0.0/SpotHack.apk) - (don't forget the [API Credentials](#api-credentials))
* [Download APK](https://github.com/Darguima/SpotHack/releases/download/v1.0.1/SpotHack.apk) - (don't forget the [API Credentials](#api-credentials))
* [Download and Build the Code](#getting-started-)
* [Download APK 🔑](https://github.com/Darguima/SpotHack/releases/download/v1.0.1/SpotHackLocked.zip) for my friends - (__need password to install__ 🔒)

## How it works? ⚙⚙

Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ android {
applicationId "com.darguima.spothack"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2
versionName "1.0.0"
versionCode 3
versionName "1.0.1"
}
splits {
abi {
Expand Down
10 changes: 1 addition & 9 deletions src/services/youtubeScrape/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,8 @@ interface searchYoutubeVideoSchema extends searchYoutubeVideoResponse {
success: number
}

const youtubeScrape = axios.create(
{
baseURL: 'http://youtube-scrape.herokuapp.com/api'
}
)

export const scrapeFromYoutubeVideo = async (q: string, ignoreId?: string, minDuration?: number, maxDuration?: number) => {
const { data } = await youtubeScrape.get('search', {
const { data } = await axios.get('https://youtube-scrape.herokuapp.com/api/search', {
params: {
q
}
Expand Down Expand Up @@ -62,6 +56,4 @@ export const scrapeFromYoutubeVideo = async (q: string, ignoreId?: string, minDu
}
}

export default youtubeScrape

// https://github.com/HermanFassett/youtube-scrape

0 comments on commit ed7dd2e

Please sign in to comment.