get link with album
This commit is contained in:
parent
2279e4b0b6
commit
e5109204aa
@ -223,7 +223,9 @@ class WPimport:
|
||||
author = self._getAuthor(self._author)
|
||||
else:
|
||||
link_a = albumbody.find_all("a")
|
||||
href_a = link_a[0].get("href", "/")
|
||||
for i in link_a:
|
||||
if re.search(r"/albums/", i.get("href", "/")):
|
||||
href_a = i.get("href", "/")
|
||||
author = self._getInfoAlbum(href_a)
|
||||
self._logger.info("{0} : author : {1}".format(self._name, author))
|
||||
self._getAuthor(author)
|
||||
|
Loading…
x
Reference in New Issue
Block a user