nyapy 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nyapy/nyaa.py CHANGED
@@ -49,8 +49,8 @@ class Nyaa:
49
49
  comments = int(comments.text) if comments else 0
50
50
  name = properties[1].find('a', {'class': False})
51
51
  (name, id) = (name.text, name.get('href')) if name else ('', '')
52
- id = re.search(r'\d*', (str(id) or ''))
53
- id = id.group(1) if id else 0
52
+ id = re.search(r'\d+', (str(id) or ''))
53
+ id = id.group(0) if id else 0
54
54
  torrent = properties[2].find('i', {'class': 'fa-download'})
55
55
  torrent = torrent.parent if torrent else None
56
56
  torrent = torrent.get('href') if torrent else None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nyapy
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: A nyaa scrapper
5
5
  Author: mikel39
6
6
  Author-email: mikel39 <202028875+mikel39@users.noreply.github.com>
@@ -1,10 +1,10 @@
1
1
  nyapy/__init__.py,sha256=Q85n2fc9xfJPjy1nGcWjHo092HhL-wECjRH_YzNzAjo,208
2
2
  nyapy/client.py,sha256=9LeOHoqLjgeKTxHDZApfSigDlOZG1qlN8yOB6ApCUzw,385
3
3
  nyapy/enums.py,sha256=AEY7OpuW3I5tSQ1XuwGHPzv-DYQSYmPBJ6ChzS47pRo,1087
4
- nyapy/nyaa.py,sha256=B91u9IlQxij-wK8mmklRRU6HlPCExvAi1akUWeQTEjI,2924
4
+ nyapy/nyaa.py,sha256=wfI2RtriFPspjP2veLVcsZJ3L6qkNx6cakkRJydKWeo,2924
5
5
  nyapy/nyaafun.py,sha256=gWqSQ4yNiLrzs8flFibRAL4lEmy6A9EvHh1E981EzWU,715
6
6
  nyapy/sukebei.py,sha256=FFkcJ47tR-aeapSUYQQYlDIZKRo0_srnpYYP_d-ylwk,715
7
7
  nyapy/types/nyaa.py,sha256=zpnQdPRVL-GKoRQ25-YzxzGvSoFbSWESW8wQnKs3Hzw,520
8
- nyapy-0.1.1.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
9
- nyapy-0.1.1.dist-info/METADATA,sha256=CrNX_uIz5umseXdUjoW3ZRNicEiwH9PPRWp0spny544,338
10
- nyapy-0.1.1.dist-info/RECORD,,
8
+ nyapy-0.1.3.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
9
+ nyapy-0.1.3.dist-info/METADATA,sha256=azIVT5-Zr1uLVEsfcwZWgGFWvqLJ5AgPG1XcdZkIXkY,338
10
+ nyapy-0.1.3.dist-info/RECORD,,
File without changes