from mari@pi mari@pi on 2018-08-30 14:58
wait..Voting.. bad good
import os import re mextention = raw_input('give me the extension of the movie files\n') sextention = raw_input('give me the extension of the subtitles files\n') for fname in os.listdir(os.getcwd()): if fname[-3:] == mextention : for sname in os.listdir(os.getcwd()): if sname[-3:] == sextention : if [int(s) for s in re.findall(r'\d+', fname[:-4])]==[int(x) for x in re.findall(r'\d+', sname[:-4])]: os.rename(sname,fname[:-4]+'.'+sextention) print 'renaming ' + sname + ' to ' + fname[:-4]+'.'+sextention
from mari@pi mari@pi on 2018-08-30 10:46
wait..Voting.. bad good
from mari@pi mari@pi on 2018-08-27 16:03
1 1 votes
wait..Voting.. bad good
from mari@pi mari@pi on 2018-08-27 09:52 1 comments
wait..Voting.. bad good
a
A Guide to Rome’s Dark and Trippy DIY Scene
from mari@pi mari@pi on 2018-08-21 09:39
wait..Voting.. bad good
from mari@pi mari@pi on 2018-08-10 15:03
wait..Voting.. bad good
from mari@pi mari@pi on 2018-08-10 10:32
wait..Voting.. bad good
babakitoni