ssili126/tv

最好把节目名称弄的规范一些

Opened this issue · 1 comments

                        name = name.replace("cctv", "CCTV")
                        name = name.replace("**", "CCTV")
                        name = name.replace("央视", "CCTV")
                        name = name.replace("高清", "")
                        name = name.replace("超高", "")
                        name = name.replace("HD", "")
                        name = name.replace("标清", "")
                        name = name.replace("频道", "")
                        name = name.replace("-", "")
                        name = name.replace(" ", "")
                        name = name.replace("PLUS", "+")
                        name = name.replace("+", "+")
                        name = name.replace("(", "")
                        name = name.replace(")", "")
                        name = re.sub(r"CCTV(\d+)台", r"CCTV\1", name)
                        name = name.replace("CCTV1综合", "CCTV1")
                        name = name.replace("CCTV2财经", "CCTV2")
                        name = name.replace("CCTV3综艺", "CCTV3")
                        name = name.replace("CCTV4国际", "CCTV4")
                        name = name.replace("CCTV4中文国际", "CCTV4")
                        name = name.replace("CCTV4欧洲", "CCTV4")
                        name = name.replace("CCTV5体育", "CCTV5")
                        name = name.replace("CCTV6电影", "CCTV6")
                        name = name.replace("CCTV7军事", "CCTV7")
                        name = name.replace("CCTV7军农", "CCTV7")
                        name = name.replace("CCTV7农业", "CCTV7")
                        name = name.replace("CCTV7国防军事", "CCTV7")
                        name = name.replace("CCTV8电视剧", "CCTV8")
                        name = name.replace("CCTV9记录", "CCTV9")
                        name = name.replace("CCTV8纪录", "CCTV9")
                        name = name.replace("CCTV9纪录", "CCTV9")
                        name = name.replace("CCTV10科教", "CCTV10")
                        name = name.replace("CCTV11戏曲", "CCTV11")
                        name = name.replace("CCTV12社会与法", "CCTV12")
                        name = name.replace("CCTV13新闻", "CCTV13")
                        name = name.replace("CCTV新闻", "CCTV13")
                        name = name.replace("CCTV14少儿", "CCTV14")
                        name = name.replace("CCTV少儿", "CCTV14")
                        name = name.replace("CCTV少儿超", "CCTV14")
                        name = name.replace("CCTV15音乐", "CCTV15")
                        name = name.replace("CCTV音乐", "CCTV15")
                        name = name.replace("CCTV16奥林匹克", "CCTV16")
                        name = name.replace("CCTV17农业农村", "CCTV17")
                        name = name.replace("CCTV17农业", "CCTV17")
                        name = name.replace("CCTV5+体育赛视", "CCTV5+")
                        name = name.replace("CCTV5+体育赛事", "CCTV5+")
                        name = name.replace("CCTV5+体育", "CCTV5+")
                        name = name.replace("CCTV教育", "CETV1")
                        name = name.replace("风云足球", "CCTV风云足球")
                        name = name.replace("上海卫视", "东方卫视")
                        name = name.replace("内蒙卫视", "内蒙古卫视")
                        name = name.replace("旅游卫视", "海南卫视")
                        name = name.replace("天津卫视台", "天津卫视")
                        name = name.replace("天津体育台", "天津体育")
                        name = name.replace("天津公共台", "天津购物")
                        name = name.replace("天津影视台", "天津影视")
                        name = name.replace("天津文艺台", "天津文艺")
                        name = name.replace("天津新闻台", "天津新闻")
                        name = name.replace("天津科教台", "天津教育")
                        name = name.replace("天津都市台", "天津都市")
                        name = name.replace("CHC电影", "CHC高清电影")
                        name = name.replace("江西少儿频", "江西少儿")
                        name = name.replace("江西影视旅", "江西影视")
                        name = name.replace("江西教育标", "江西教育")
                        name = name.replace("教育电视台1", "CETV1")
                        name = name.replace("CNB亚太财经", "CNBC亚洲频道")
                        name = name.replace("东奥纪实", "BTV纪实科教")
                        name = name.replace("法治天地", "法治天下")
                        name = name.replace("淘电影", "BTV淘电影")
                        name = name.replace("4K电源", "BTV4K超清")

各地各省均不同,而且不乏错字别字,可以根据自己的喜好随意调整。