@@ -78,7 +78,7 @@ protected void onHandleIntent(@Nullable Intent intent) {
78
78
79
79
notificationBuilder = new NotificationCompat .Builder (this , "" )
80
80
.setSmallIcon (R .drawable .ic_download )
81
- .setContentTitle (video .getVidTitle ())
81
+ .setContentTitle (video .getTitle ())
82
82
.setContentText (getString (R .string .download_started ))
83
83
.setAutoCancel (true );
84
84
@@ -90,7 +90,7 @@ protected void onHandleIntent(@Nullable Intent intent) {
90
90
91
91
notificationManager .notify (0 , notificationBuilder .build ());
92
92
93
- initDownload (video .getVidInfo (). get ( "0" ). getDloadUrl ());
93
+ initDownload (video .getFile ());
94
94
95
95
}
96
96
@@ -109,7 +109,7 @@ private boolean writeResponseBodyToDisk(ResponseBody body) {
109
109
}
110
110
111
111
if ( root .exists () ) {
112
- File file = new File (rootDir + File .separator + video .getVidTitle () + ".mp3" );
112
+ File file = new File (rootDir + File .separator + video .getTitle () + ".mp3" );
113
113
114
114
InputStream inputStream = null ;
115
115
OutputStream outputStream = null ;
@@ -153,7 +153,7 @@ private boolean writeResponseBodyToDisk(ResponseBody body) {
153
153
outputStream .flush ();
154
154
155
155
// Music file
156
- Utils .isMusic (getApplicationContext (), file , video .getVidTitle ());
156
+ Utils .isMusic (getApplicationContext (), file , video .getTitle ());
157
157
158
158
return true ;
159
159
} catch (IOException e ) {
0 commit comments