sengsational / cwhelper

The code here is the background job for CW_EPG, an electronic program guide / DVR for Windows
1 stars 1 forks source link

Metadata not applied when the file name changes #47

Open sengsational opened 5 days ago

sengsational commented 5 days ago

In some situations, the file name gets changed on the fly. The change is where "_00n" is added, where "n" is an integer.

When the process that adds metadata runs, it looks in the database for the original file name (without the "_00n"), and does not find it, so metadata is not added.

One solution would be to expand the database lookup so that it finds both the original file name, as well as the renamed versions.

sengsational commented 4 days ago

Expanded the SQL query for metadata addition and added data range to query. Checked into master.

https://github.com/sengsational/cwhelper/commit/55821bf33b2a467b55fc97500cb6f33c30c62a77

https://github.com/sengsational/cwhelper/blob/55821bf33b2a467b55fc97500cb6f33c30c62a77/CwHelperC/src/org/cwepg/hr/CaptureMetadata.java#L142