Skip to content

Commit

Permalink
BITCHUTE: fix channel avatar extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
evermind-zz committed Nov 7, 2023
1 parent bba0494 commit 22dd274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public String getName() throws ParsingException {
public String getAvatarUrl() throws ParsingException {
try {
if (avatarUrl == null) {
avatarUrl = doc.select("#page-bar > div > div > div.image-container > a > img")
avatarUrl = doc.select("#page-bar > div > div > div.image-container > img")
.first().attr("data-src");
if (avatarUrl.startsWith("/")) {
avatarUrl = BitchuteConstants.BASE_URL + avatarUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public static void setUp() throws Exception {
put(KeysForTestDataMap.expectedMinSubscriberCount, "400");
// 20210414 at the writing of this test the channel has no description added
put(KeysForTestDataMap.expectedDescription, "");
put(KeysForTestDataMap.expectedAvatarUrl, "https://www.bitchute.com/static/v137a/images/blank_small.png");
put(KeysForTestDataMap.expectedBannerlUrl, "https://www.bitchute.com/static/v137a/images/blank_small.png");
put(KeysForTestDataMap.expectedAvatarUrl, "2fqQXi6GCbgyrXaPQ540PLNu_small.jpg");
put(KeysForTestDataMap.expectedBannerlUrl, "2fqQXi6GCbgyrXaPQ540PLNu_small.jpg");
// 20210414 at the writing of this test the channel has not more than one page videos are added
put(KeysForTestDataMap.doTestMoreRelatedItems, "false");
}};
Expand Down

0 comments on commit 22dd274

Please sign in to comment.