| import asyncio | |
| import sys | |
| sys.path.insert(0, '..') | |
| from api.routes.anime import jimaku as subs | |
| async def test_open_subs(): | |
| results = await subs._fetch_opensubtitles(None, 1, 'dub', 'Naruto') | |
| print('count', len(results)) | |
| for t in results[:5]: | |
| print(t) | |
| if __name__ == '__main__': | |
| asyncio.run(test_open_subs()) | |