File tree 1 file changed +3
-2
lines changed
Sanara/Module/Command/Impl
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,9 @@ public async Task AdultVideoAsync(IContext ctx)
187
187
var info = html . DocumentNode . SelectSingleNode ( "//div[contains(@x-show, \" currentTab === 'video_details'\" )]" ) ;
188
188
189
189
// Get fields
190
- var name = html . DocumentNode . SelectSingleNode ( "//h1[contains(@class, 'lg:text-lg')]" ) . InnerHtml ;
191
- var description = HttpUtility . HtmlDecode ( info . ChildNodes [ 1 ] . ChildNodes [ 1 ] . ChildNodes [ 1 ] . InnerHtml ) ;
190
+ var name = HttpUtility . HtmlDecode ( html . DocumentNode . SelectSingleNode ( "//h1[contains(@class, 'lg:text-lg')]" ) . InnerHtml ) ;
191
+ var descNode = info . ChildNodes [ 1 ] . ChildNodes [ 1 ] . ChildNodes [ 1 ] ;
192
+ var description = descNode . HasClass ( "text-secondary" ) ? HttpUtility . HtmlDecode ( descNode . InnerHtml ) : string . Empty ;
192
193
IEnumerable < string > tags ;
193
194
try
194
195
{
You can’t perform that action at this time.
0 commit comments