-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow process destroying by specifying string id #173
Conversation
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
I'll take a look and test it tonight if I have some free time. |
Make additional checks (when possible) before killing a download process
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, I left some comments.
We may need to add the method in the sample app or add it in the readme file something like that
To cancel a specific download
YoutubeDL.getInstance().destroyProcessById( id );
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java
Outdated
Show resolved
Hide resolved
…DL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]>
…DL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]>
…DL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]>
…DL.java Co-authored-by: iBR <[email protected]>
…DL.java Co-authored-by: iBR <[email protected]>
…DL.java Co-authored-by: iBR <[email protected]>
Readme example added
I made the suggested modifications and Updated both readme and example. |
* Allow process destroying by specifying string id * Throw Exception when process ID already exists. Make additional checks (when possible) before killing a download process * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Example updated Readme example added Co-authored-by: iBR <[email protected]>
* Allow process destroying by specifying string id * Throw Exception when process ID already exists. Make additional checks (when possible) before killing a download process * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Example updated Readme example added Co-authored-by: iBR <[email protected]>
* Allow process destroying by specifying string id * Throw Exception when process ID already exists. Make additional checks (when possible) before killing a download process * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Example updated Readme example added Co-authored-by: iBR <[email protected]>
* Allow process destroying by specifying string id * Throw Exception when process ID already exists. Make additional checks (when possible) before killing a download process * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Cosmetic code fixes Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Update library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java Co-authored-by: iBR <[email protected]> * Example updated Readme example added Co-authored-by: iBR <[email protected]>
Here I implement the @JunkFood02 idea of process destroy.