(self, chn_type: str, url: str)
| 209 | self.all_urls[chn_type] = set() |
| 210 | |
| 211 | def check_url_exist(self, chn_type: str, url: str) -> bool: |
| 212 | if url in self.all_urls.get(chn_type, set()) or "127.0.0.1" in url: |
| 213 | return True |
| 214 | return False |
| 215 | |
| 216 | # === 全局单频道限流 === |
| 217 | def is_single_chn_limit(self, channel_name: str) -> bool: |