Also passes our regex if there is a year now.
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
				
			|||||||
# @Author: KevinMidboe
 | 
					# @Author: KevinMidboe
 | 
				
			||||||
# @Date:   2017-10-12 11:55:03
 | 
					# @Date:   2017-10-12 11:55:03
 | 
				
			||||||
# @Last Modified by:   KevinMidboe
 | 
					# @Last Modified by:   KevinMidboe
 | 
				
			||||||
# @Last Modified time: 2017-10-22 18:49:06
 | 
					# @Last Modified time: 2017-10-22 18:54:18
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import sys, logging, re, json
 | 
					import sys, logging, re, json
 | 
				
			||||||
from urllib import parse, request
 | 
					from urllib import parse, request
 | 
				
			||||||
@@ -213,7 +213,7 @@ class piratebay(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
				info_text = torrentElement.find('font', class_='detDesc').get_text()
 | 
									info_text = torrentElement.find('font', class_='detDesc').get_text()
 | 
				
			||||||
				
 | 
									
 | 
				
			||||||
				date = return_re_match(info_text, r"(\d+\-\d+)|(Y\-day|Today)")
 | 
									date = return_re_match(info_text, r"(\d+\-\d+(\s\d{4})?)|(Y\-day|Today)")
 | 
				
			||||||
				size = return_re_match(info_text, r"(\d+(\.\d+)?\s[a-zA-Z]+)")
 | 
									size = return_re_match(info_text, r"(\d+(\.\d+)?\s[a-zA-Z]+)")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				# COULD NOT FIND HREF!
 | 
									# COULD NOT FIND HREF!
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user