Skip to content

Commit

Permalink
Fixed Spotify playlist parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhPatange committed Dec 28, 2019
1 parent d712825 commit cf16fa7
Show file tree
Hide file tree
Showing 36 changed files with 809 additions and 404 deletions.
Binary file modified .gradle/4.6/fileContent/fileContent.lock
Binary file not shown.
Binary file modified .gradle/4.6/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/4.6/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/4.6/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.6/javaCompile/taskJars.bin
Binary file not shown.
Binary file modified .gradle/4.6/taskHistory/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/4.6/taskHistory/taskHistory.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

607 changes: 333 additions & 274 deletions .idea/workspace.xml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@
<orderEntry type="library" name="Gradle: com.android.support:support-media-compat:28.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.duanhong169:drawabletoolbox:1.0.7@aar" level="project" />
<orderEntry type="library" name="Gradle: com.mindorks.android:prdownloader:0.6.0@aar" level="project" />
<orderEntry type="library" name="Gradle: artifacts:spotify-auth-release:unspecified@jar" level="project" />
<orderEntry type="library" name="Gradle: com.android.volley:volley:1.1.1@aar" level="project" />
<orderEntry type="library" name="Gradle: com.github.clans:fab:1.6.4@aar" level="project" />
<orderEntry type="library" name="Gradle: com.spotify.android:auth:1.1.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support:cardview-v7:28.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: com.mikhaellopez:circularprogressbar:3.0.3@aar" level="project" />
<orderEntry type="library" name="Gradle: com.android.support.constraint:constraint-layout:1.1.3@aar" level="project" />
Expand Down
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ dependencies {
implementation 'com.mindorks.android:prdownloader:0.6.0'

implementation 'org.jsoup:jsoup:1.11.1'
implementation project(':spotify-auth-release')
implementation 'com.android.volley:volley:1.1.1'

implementation 'com.github.clans:fab:1.6.4'
implementation 'com.spotify.android:auth:1.1.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.mikhaellopez:circularprogressbar:3.0.3'
Expand Down
7 changes: 6 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-1763645001743174~5602018181" />
<activity
android:name="com.spotify.sdk.android.authentication.LoginActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name=".EqualizerActivity"
android:launchMode="singleTask"
Expand Down Expand Up @@ -114,7 +117,9 @@
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name=".CPlaylistActivity" />
<activity android:name=".CPlaylistActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait"/>
<activity android:name=".SettingsActivity" />
<activity
android:name=".SplashActivity"
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/java/com/kpstv/youtube/Backup.java
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void showListDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(PlayerActivity2.this);
builder.setTitle("Select Media Codec");
builder.setItems(arrays, (dialog, which) -> {
builder.setItems(arrays, (globalAlertDialog, which) -> {
YTConfig config = configs.get(which);
String filename;
if (config.getText().length() > 55) {
Expand Down Expand Up @@ -562,8 +562,8 @@ void showListDialog() {
Toast.LENGTH_SHORT).show();
showAd();
});
AlertDialog dialog = builder.create();
dialog.show();
AlertDialog globalAlertDialog = builder.create();
globalAlertDialog.show();
}
private void downloadFromUrl(String youtubeDlUrl, String downloadTitle, String fileName) {
Expand Down Expand Up @@ -621,14 +621,14 @@ protected void onPreExecute() {
Log.e("ExecutingTask","true");
LayoutInflater inflater = getLayoutInflater();
dialogView = inflater.inflate(R.layout.alert_merger, null);
tview = dialogView.findViewById(R.id.textView);
tview = dialogView.findViewById(R.id.titleAuthorText);
bar = dialogView.findViewById(R.id.progressBar);
AlertDialog.Builder alert = new AlertDialog.Builder(PlayerActivity2.this);
alert.setTitle("Download");
alert.setMessage("This could take a while depending upon length of audio!");
alert.setCancelable(false);
alert.setView(dialogView);
alert.setNegativeButton("Cancel", (dialog, which) -> {
alert.setNegativeButton("Cancel", (globalAlertDialog, which) -> {
cutTask.cancel(true);
});
alertdialog = alert.create();
Expand Down Expand Up @@ -731,14 +731,14 @@ protected void onPreExecute() {
Log.e("ExecutingTask","true");
LayoutInflater inflater = getLayoutInflater();
dialogView = inflater.inflate(R.layout.alert_merger, null);
tview = dialogView.findViewById(R.id.textView);
tview = dialogView.findViewById(R.id.titleAuthorText);
bar = dialogView.findViewById(R.id.progressBar);
AlertDialog.Builder alert = new AlertDialog.Builder(PlayerActivity2.this);
alert.setTitle("Merging");
alert.setMessage("This could take a while depending upon length of video!");
alert.setCancelable(false);
alert.setView(dialogView);
alert.setNegativeButton("Cancel", (dialog, which) -> {
alert.setNegativeButton("Cancel", (globalAlertDialog, which) -> {
mergeTask.cancel(true);
});
alertdialog = alert.create();
Expand Down
Loading

0 comments on commit cf16fa7

Please sign in to comment.