Пример #1
0
    #print(line.split('|')[0].split('.')[-1])
    mp3_type = line.split('|')[0].split('.')[-1]
    print('{}.{}|{}|{}'.format(count_fmt, mp3_type, line.split('|')[1], line.split('|')[2]))
    
    count += 1 
'''

#convert_myanmar_number('titles_links.txt', 'description.txt') # titles_links.txt description.txt
'''
playlist = 'ေဒါက္တာစိုးလြင္ (မႏၲေလး) ၀ိသုဒၶိမဂ္ဓမၼလမ္း၀ိပႆနာသင္တန္း တရားေတာ္မ်ား'
description_title = 'ေဒါက္တာစိုးလြင္ (မႏၲေလး) ၀ိသုဒၶိမဂ္ဓမၼလမ္း၀ိပႆနာသင္တန္း တရားေတာ္မ်ား'
source='\nsource from https://www.thitsarparamisociety.com/'
get_json('titles_links.txt', 'description.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt
'''

thread_download('results.txt', 3)
#thread_download('titles_links.txt', 1)
#thread_upload_test('raw_json_title.txt')
#thread_upload_test_title('raw_json_title.txt')
#thread_upload('raw_json_title.txt', 1)

#thread_convert_mp3_to_mp4(1)
'''
remote_username = '******'
remote_pass = '******'
remote_hostname = '192.168.1.38'
escaped_remote = '/data/data/com.termux/files/home/storage/external-1/youtube/dr-soe-lwin/'
remote_port = 8022
#copy_to_remote('*.pdf',
# thread_upload_remote(copied_file, running_from_path, remote_username, remote_pass, remote_hostname, remote_port, escaped_remote, threads):
thread_upload_remote('*.mp4', running_from_path,
Пример #2
0
    get_json_title,
    add_extra_description,
    breaker_in_order,
)

#get_html_mp3('raw_html.txt', 'raw_titles_links.txt', 1)

#check_duplicate('raw_titles_links.txt') #titles_links.txt
#update_raw_titles_links('raw_titles_links.txt', 'titles_links.txt', 1)
#convert_myanmar_number_option('raw_titles_links.txt', 'titles_links.txt', 1)

#breaker_in_order(get_results('desc.txt'))

#convert_myanmar_number('titles_links.txt', 'description.txt') # titles_links.txt description.txt


def get_json_new():

    playlist = "'ပ' သုံးလုံး ဝိပဿနာပညာတက္ကသိုလ် 'ပ' သုံးလုံးဝိပဿနာပြန့်ပွားရေးအဖွဲ့ချုပ် ဘဒ္ဒန္တဇောတိက ဟောကြားတော်မူသော တရားတော်များ"
    description_title = "'ပ' သုံးလုံး ဝိပဿနာပညာတက္ကသိုလ် 'ပ' သုံးလုံးဝိပဿနာပြန့်ပွားရေးအဖွဲ့ချုပ် ဘဒ္ဒန္တဇောတိက သာသနဓဇဓမ္မာစရိယ၊ မဟာကမ္မဋ္ဌာနာစရိယ၊ အဂ္ဂမဟာကမ္မဋ္ဌာနာစရိယ ဝိပဿနာပညာတက္ကသီလာဒီအမ္မိက(ကျမ်းပြု) ဟောကြားတော်မူသော တရားတော်များ"
    source = '\nsource from http://www.dhammadownload.com'
    #get_json_files_in_same('titles_links.txt', 'titles_links.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt
    get_json('titles_links.txt', 'description.txt', 'raw_json_title.txt',
             playlist, description_title,
             source)  #titles_links.txt description.txt raw_json_title.txt


#get_json_new()
#thread_upload_test_title('raw_json_title.txt')
thread_download('titles_links.txt', 3)
Пример #3
0
#get_html_mp3('raw_html.txt', 'raw_titles_links.txt', 1)
#get_html_mp4('raw_html.txt', 'raw_titles_links.txt', 1)

#check_duplicate('raw_titles_links.txt') #titles_links.txt
#update_raw_titles_links('raw_titles_links.txt', 'titles_links.txt', 1)
#convert_myanmar_number_option('raw_titles_links.txt', 'titles_links.txt', 1)

#breaker_in_order(get_results('desc.txt'))

#convert_myanmar_number('titles_links.txt', 'description.txt') # titles_links.txt description.txt


def get_json_new():

    playlist = 'ပထမကြီးတန်းအတွက် ဆန်းဘာသာ ပို့ချလမ်းညွှန်မှုစာဝါမှတ်တမ်း'
    description_title = 'ပထမကြီးတန်းအတွက် ဆန်းဘာသာ ပို့ချလမ်းညွှန်မှုစာဝါမှတ်တမ်း'
    source = '\nsource from https://www.facebook.com/sila.vansa'
    get_json_files_in_same(
        'titles_links.txt', 'titles_links.txt', 'raw_json_title.txt', playlist,
        description_title,
        source)  #titles_links.txt description.txt raw_json_title.txt
    #get_json('titles_links.txt', 'description.txt', 'raw_json_title.txt',playlist, description_title, source) #titles_links.txt description.txt raw_json_title.txt


thread_download('raw_titles_links.txt', 2)
#get_json_new()
#thread_download("titles_links.txt", 3)
#thread_upload_test_title('raw_json_title.txt')
#thread_convert_mp3_to_mp4(3)