#this file allows for edits to metadata.
import os
os.listdir()
['posts',
 '.DS_Store',
 'harris_night.png',
 'Untitled.ipynb',
 'index.qmd',
 'justice_steps.png',
 'SCC_lobby_winter.png',
 '.ipynb_checkpoints',
 'pencil_judge.png',
 'marker_drawing.png']
bad_files = ['.DS_Store','.ipynb_checkpoints']
new = 'This transcript was made with automated artificial intelligence models and its accuracy has not been verified. Review the original'
for directory in os.listdir('posts'):
    if directory not in bad_files:
        with open(f'posts/{directory}/index.md', 'r') as text:
            data = text.readlines()
        
        data[12] = new + data[12].split('the original')[1]
        
        with open(f'posts/{directory}/index.md', 'w') as text:
            text.writelines(data)
os.listdir('posts')
['2021-05-14--39277-39278',
 '2020-09-23--38663-38781-39116',
 '2020-09-24--38837',
 '2021-12-03--39570',
 '2022-05-16--39844',
 '2022-10-12--39754',
 '2021-10-15--39556',
 '2021-11-12--39162',
 '2021-02-19--39245',
 '2021-03-16--38921',
 '2022-03-24--39544',
 '2021-02-15--39041',
 '2021-11-03--39287',
 '2022-01-18--39418',
 '2021-11-02--39416',
 '2021-10-14--39531',
 '2022-01-13--39430',
 '2021-05-17--38949',
 '2020-10-07--39062-38861',
 '2020-10-08--38734',
 '2022-04-12--39875',
 '2020-06-12--38984',
 '.DS_Store',
 '2022-02-09--39710',
 '2022-01-14--39590',
 '2021-04-20--39130',
 '2021-05-13--39220',
 '2022-04-21--39654',
 '2020-11-04--38808',
 '2022-01-11--39383',
 '2022-11-02--39869',
 '2022-04-20--39439',
 '2022-05-18--39629',
 '2020-10-15--38687',
 '2020-10-13--38785',
 '2021-04-16--39372',
 '2021-02-18--39112',
 '2021-11-05--39440',
 '2020-10-14--38801',
 '2022-03-18--39785',
 '2020-11-10--38546',
 '2021-03-24--39182',
 '2020-11-03--39006',
 '2020-02-18--38577',
 '2022-11-03--39879',
 '2021-01-18--39049',
 '2020-12-09--39094',
 '2022-02-16--39594',
 '2020-02-20--38585',
 '2020-12-03--38904',
 '2022-09-14--39680',
 '2020-12-01--38871',
 '2022-02-14--39480-39481',
 '2020-11-05--38962',
 '2021-10-12--39270',
 '2021-03-18--39155',
 '2022-03-22--39338-39438',
 '2020-06-10--37984',
 '2021-10-06--39133-39516',
 '2020-11-06--38870',
 '2021-12-10--39559',
 '2020-11-09--38944',
 '2020-12-07--38938',
 '2021-12-06--39350',
 '2021-03-23--39122',
 '2021-05-12--39301',
 '2021-11-09--39781',
 '2021-01-19--39110',
 '2021-12-07--39568',
 '2021-03-19--39113',
 '2020-11-12--38755',
 '2021-11-08--39340',
 '2021-12-01--39533-39567-39558',
 '2022-03-16--39599',
 '2021-05-19--39456',
 '2020-12-04--39109',
 '2021-11-04--39323',
 '2021-10-08--39274',
 '2021-11-30--39267',
 '2022-10-11--39796',
 '2020-01-20--38571',
 '2021-10-13--39123',
 '2021-12-09--39569',
 '2021-03-25--39108',
 '2020-12-10--39114',
 '2020-12-08--38795',
 '2022-05-17--39664-39803-39871-39676',
 '2021-12-02--39533-39567-39558',
 '2021-10-05--39133-39516',
 '2022-01-12--39430',
 '2020-01-21--38544',
 '2022-03-21--39817',
 '2022-03-15--39701',
 '.ipynb_checkpoints',
 '2021-04-22--39401',
 '2021-12-08--39577',
 '2020-06-09--38741',
 '2020-10-06--38695',
 '2020-12-02--39163',
 '2021-05-21--39222',
 '2020-01-17--38739',
 '2020-11-13--38854',
 '2021-01-22--39214',
 '2022-03-17--39661',
 '2022-09-15--39906',
 '2022-03-23--39346',
 '2020-01-22--38613',
 '2022-01-19--39547',
 '2021-01-21--39134',
 '2020-01-23--38594',
 '2021-12-03--39330',
 '2021-04-13--39215',
 '2021-05-18--39227',
 '2020-09-22--38663-38781-39116',
 '2020-01-16--38682',
 '2022-11-01--39826',
 '2020-11-05--39019',
 '2020-12-11--39084',
 '2022-04-19--39874',
 '2022-05-19--39543',
 '2021-04-15--37878',
 '2021-10-07--39525',
 '2022-02-10--39381']