pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clean up rt scraper

Pas 3428abdb 91af92dd

+3 -11
+3 -11
src/utils/rottenTomatoesScraper.ts
··· 74 74 ); 75 75 } 76 76 77 + // eslint-disable-next-line no-console 77 78 console.log( 78 79 `[RT Scraper] Using ${hasExtension ? "browser extension" : "custom proxy"} for requests`, 79 80 ); ··· 125 126 const movieRows = searchResultsDiv[1].match( 126 127 /<search-page-media-row[^>]*>(.*?)<\/search-page-media-row>/gs, 127 128 ); 128 - if (!movieRows || movieRows.length === 0) { 129 - console.log("[RT Scraper] No movies found in search results"); 130 - return null; 131 - } 129 + if (!movieRows || movieRows.length === 0) return null; 132 130 133 131 // Convert movie rows to structured data 134 132 const movies = movieRows.map((row) => { ··· 137 135 const scoreMatch = row.match(/tomatometerscore="([^"]+)"/); 138 136 const sentimentMatch = row.match(/tomatometersentiment="([^"]+)"/); 139 137 const yearMatch = row.match(/releaseyear="([^"]+)"/); 140 - const verifiedHotMatch = row.match(/verifiedhot="([^"]+)"/); 141 138 const tomatometeriscertified = row.match( 142 139 /tomatometeriscertified="([^"]+)"/, 143 140 ); ··· 165 162 // Try to find the best matching movie 166 163 const match = findBestMatch(title, movies, year); 167 164 168 - if (!match) { 169 - console.log( 170 - `[RT Scraper] No match found for "${title}"${year ? ` (${year})` : ""} among ${movies.length} results`, 171 - ); 172 - return null; 173 - } 165 + if (!match) return null; 174 166 175 167 // Extract the movie data 176 168 return {