Skip to content

Commit

Permalink
VideoStoreImportService: oops fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed Feb 10, 2024
1 parent 50dc6ff commit 5cd6373
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/com/archos/mediaprovider/video/VideoStoreImportService.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ private void processDeleteFileAndVobCallback() {
DeleteFileCallback delCb = new DeleteFileCallback();
String[] DeleteFileCallbackArgs = null;
String[] VobUpdateCallbackArgs = null;
int count = 0;
int cCount = 0;

try {
// tidy up the accumulated actor director writer studio genre piled up in v_.*_deletable tables in one shot during deletes
Expand All @@ -518,9 +518,9 @@ private void processDeleteFileAndVobCallback() {
while (true) {
try {
c = db.rawQuery("SELECT * FROM delete_files WHERE name IN (SELECT cover_movie FROM MOVIE UNION SELECT cover_show FROM SHOW UNION SELECT cover_episode FROM EPISODE) ORDER BY " + BaseColumns._ID + " ASC LIMIT " + WINDOW_SIZE, null);
count = c.getCount();
log.debug("processDeleteFileAndVobCallback: delete_files cover_movie new batch fetching window=" + WINDOW_SIZE + " -> cursor has size " + count);
if (count == 0) {
cCount = c.getCount();
log.debug("processDeleteFileAndVobCallback: delete_files cover_movie new batch fetching window=" + WINDOW_SIZE + " -> cursor has size " + cCount);
if (cCount == 0) {
log.debug("processDeleteFileAndVobCallback: delete_files cover_movie no more data");
break; // break out if no more data
}
Expand Down Expand Up @@ -551,9 +551,9 @@ private void processDeleteFileAndVobCallback() {
while (true) {
try {
c = db.rawQuery("SELECT * FROM delete_files ORDER BY " + BaseColumns._ID + " ASC LIMIT " + WINDOW_SIZE, null);
count = c.getCount();
log.debug("processDeleteFileAndVobCallback: delete_files new batch fetching window=" + WINDOW_SIZE + " -> cursor has size " + count);
if (count == 0) {
cCount = c.getCount();
log.debug("processDeleteFileAndVobCallback: delete_files new batch fetching window=" + WINDOW_SIZE + " -> cursor has size " + cCount);
if (cCount == 0) {
log.debug("processDeleteFileAndVobCallback: delete_files no more data");
break; // break out if no more data
}
Expand Down Expand Up @@ -585,10 +585,10 @@ private void processDeleteFileAndVobCallback() {
while (true) {
try {
c = db.rawQuery("SELECT * FROM vob_insert ORDER BY " + BaseColumns._ID + " ASC LIMIT " + WINDOW_SIZE, null);
count = c.getCount();
log.debug("processDeleteFileAndVobCallback: delete_files new batch fetching window=" + WINDOW_SIZE + " -> cursor has size " + count);
cCount = c.getCount();
log.debug("processDeleteFileAndVobCallback: delete_files new batch fetching window=" + WINDOW_SIZE + " -> cursor has size " + cCount);
// TOFIX crashes with CursorWindowAllocationException when doing getCount() though rawQuery is paginated catch it via RuntimeException
if (count == 0) {
if (cCount == 0) {
log.debug("processDeleteFileAndVobCallback: vob_insert no more data");
break; // break out if no more data
}
Expand Down

0 comments on commit 5cd6373

Please sign in to comment.