nyapy 0.1.1__tar.gz → 0.1.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: nyapy
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A nyaa scrapper
5
5
  Author: mikel39
6
6
  Author-email: mikel39 <202028875+mikel39@users.noreply.github.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nyapy"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  authors = [
5
5
  { name = "mikel39", email = "202028875+mikel39@users.noreply.github.com" }
6
6
  ]
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes