Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'shahidtamboli/MOB-1593-hide-download-progress'
Browse files Browse the repository at this point in the history
  • Loading branch information
shahidtamboli committed Mar 18, 2015
2 parents 3f4568a + 591f1c6 commit fe62403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public Integer updateVideoLastPlayedOffset(String videoId, int offset,
public IVideoModel getVideoEntryByVideoId(String videoId, DataCallback<IVideoModel> callback);

/**
* Returns {@link IVideoModel} for given videoUrl.
* Returns {@link IVideoModel} which is downloaded or download is in progress for given videoUrl.
* @param videoUrl
* @param callback
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ public IVideoModel getVideoEntryByVideoId(String videoId, final DataCallback<IVi
public IVideoModel getVideoByVideoUrl(String videoUrl,
DataCallback<IVideoModel> callback) {
DbOperationGetVideo op = new DbOperationGetVideo(false,DbStructure.Table.DOWNLOADS, null,
DbStructure.Column.URL + "=? AND "+ DbStructure.Column.USERNAME + "=?" ,
new String[] { videoUrl, username}, null);
DbStructure.Column.URL + "=? AND "+DbStructure.Column.DOWNLOADED + "!=? AND "
+ DbStructure.Column.USERNAME + "=?" ,
new String[] { videoUrl, String.valueOf(DownloadedState.ONLINE.ordinal()), username}, null);
op.setCallback(callback);
return enqueue(op);
}
Expand Down

0 comments on commit fe62403

Please sign in to comment.