Skip to content

Commit

Permalink
Merge pull request #846 from abrignoni/lava-output-brigs
Browse files Browse the repository at this point in the history
Update applePodcasts.py
  • Loading branch information
abrignoni authored Oct 8, 2024
2 parents 71004cf + eca09a5 commit 04013cd
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions scripts/artifacts/applePodcasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,18 +186,26 @@ def get_applePodcasts(files_found, report_folder, seeker, wrap_text, timezone_of
else:
logfunc('No Apple Podcasts - Episodes data available')

if data_list1 and data_list2:
category = "Apple Podcasts"
module_name = "get_applePodcasts"

category = "Apple Podcasts"
module_name = "get_applePodcasts"

if data_list1:

data_headers1[0] = (data_headers1[0], 'datetime')
data_headers2[0] = (data_headers2[0], 'datetime')
data_headers1[1] = (data_headers1[1], 'datetime')
data_headers1[2] = (data_headers1[2], 'datetime')
data_headers1[3] = (data_headers1[3], 'datetime')

# Process first artifact for LAVA
table_name1, object_columns1, column_map1 = lava_process_artifact(category, module_name, 'Apple Podcasts - Shows', data_headers1, len(data_list1))
lava_insert_sqlite_data(table_name1, data_list1, object_columns1, data_headers1, column_map1)

if data_list2:
data_headers2[0] = (data_headers2[0], 'datetime')
data_headers2[1] = (data_headers2[1], 'datetime')
data_headers2[2] = (data_headers2[2], 'datetime')
data_headers2[3] = (data_headers2[3], 'datetime')
data_headers2[4] = (data_headers2[4], 'datetime')

# Process second artifact for LAVA
table_name2, object_columns2, column_map2 = lava_process_artifact(category, module_name, 'Apple Podcasts - Episodes', data_headers2, len(data_list2))
lava_insert_sqlite_data(table_name2, data_list2, object_columns2, data_headers2, column_map2)

Expand Down

0 comments on commit 04013cd

Please sign in to comment.