Open maciejbak85 opened 3 years ago
btw.
files = m.get_files()
for file in files:
file_details = files[file]
# print(file_details)
file_name = str(file_details['a']['n'])
if (file_name.endswith(".mp4")):
date_time = time.strftime(
' %Y-%m-%d', time.localtime(file_details['ts']))
new_name = str(file_details['ts']) + "_" + file_name
found_file = m.find(file_name)
m.rename(found_file, new_name)
this works fine, I have to find it again, not from the list.
hi,
thanks for this library! I wanted to ask what I am doing wrong, or maybe there is some bug:
files = m.get_files()
gives me:
any idea why ? looks like under 'k' there are integers..