타이틀이 1부, 2부로 되어있을 때 1부를 서브타이틀로 이동
타이틀이 없는 경우 서브타이틀로 대체
This commit is contained in:
		
							parent
							
								
									c9f4539759
								
							
						
					
					
						commit
						93af46766d
					
				
							
								
								
									
										10
									
								
								epg2xml.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								epg2xml.py
									
									
									
									
									
								
							@ -35,7 +35,7 @@ except ImportError:
 | 
			
		||||
reload(sys)
 | 
			
		||||
sys.setdefaultencoding('utf-8')
 | 
			
		||||
 | 
			
		||||
__version__ = '1.2.0p2'
 | 
			
		||||
__version__ = '1.2.1'
 | 
			
		||||
 | 
			
		||||
if not sys.version_info[:2] == (2, 7):
 | 
			
		||||
    print("Error : ", "python 2.7 버전이 필요합니다.", file=sys.stderr)
 | 
			
		||||
@ -655,6 +655,14 @@ def writeProgram(programdata):
 | 
			
		||||
    endTime = programdata['endTime']
 | 
			
		||||
    programName = escape(programdata['programName'])
 | 
			
		||||
    subprogramName = escape(programdata['subprogramName'])
 | 
			
		||||
 | 
			
		||||
    matches = re.match('(.*) \(?(\d+)부\)?', unescape(programName))
 | 
			
		||||
    if not(matches is None):
 | 
			
		||||
        programName = escape(matches.group(1));
 | 
			
		||||
        subprogrameName = escape(matches.group(1)) + ' ' + subprogramName
 | 
			
		||||
    if programName is None:
 | 
			
		||||
        programName = subprogramName
 | 
			
		||||
 | 
			
		||||
    actors = escape(programdata['actors'])
 | 
			
		||||
    producers = escape(programdata['producers'])
 | 
			
		||||
    category = escape(programdata['category'])
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user