Skip to content

Commit

Permalink
feat: add support for [recordingId], [contentId], [collectionId] in f…
Browse files Browse the repository at this point in the history
…ilenames
  • Loading branch information
lart2150 committed Jul 20, 2024
1 parent 22c0132 commit e2ce82e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/com/tivo/kmttg/main/tivoFileName.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public static String buildTivoFileName(Hashtable<String,String> entry) {
String[] names = {
"title", "titleOnly", "episodeTitle", "channelNum", "channel",
"EpisodeNumber", "SeriesEpNumber", "season", "episode", "description",
"tivoName", "originalAirDate", "movieYear"
"tivoName", "originalAirDate", "movieYear",
"recordingId", "contentId", "collectionId"
};
for (String name : names) {
if (entry.containsKey(name)) {
Expand Down Expand Up @@ -201,7 +202,8 @@ private static Hashtable<String,Object> parseKeyword(char[] chars, int offset, H
"title", "mainTitle", "episodeTitle", "channelNum", "channel",
"min", "hour", "wday", "mday", "month", "monthNum", "year",
"startTime", "SeriesEpNumber", "season", "episode", "EpisodeNumber",
"description", "tivoName", "originalAirDate", "oad_no_dashes", "movieYear"
"description", "tivoName", "originalAirDate", "oad_no_dashes", "movieYear",
"recordingId", "contentId", "collectionId"
};
for (String k : keywords) {
String replacement = k;
Expand Down

0 comments on commit e2ce82e

Please sign in to comment.