Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–227 unchanged (227 lines)
228 }
229 catch (SeriesNotFoundException)
230 {
231 _logger.Error("Series '{0}' (tvdbid {1}) was not found, it may have been removed from TheTVDB.", series.Title, series.TvdbId);
232
233 // Mark the result as indeterminate so it's not marked as a full success,
234 // // but we can still process other series if needed.
235 _commandResultReporter.Report(CommandResult.Indeterminate);
236 }
237 catch (Exception e)
238 {
239 _logger.Error(e, "Couldn't refresh info for {0}", series);
240 UpdateTags(series);
…lines 241–288 unchanged (48 lines)

After

…lines 1–227 unchanged (227 lines)
228 }
229 catch (SeriesNotFoundException)
230 {
231 _logger.Error("Series '{0}' (tvdbid {1}) was not found, it may have been removed from TheTVDB.", series.Title, series.TvdbId);
232
233 // Mark the result as indeterminate so it's not marked as a full success,
234 // but we can still process other series if needed.
235 _commandResultReporter.Report(CommandResult.Indeterminate);
236 }
237 catch (Exception e)
238 {
239 _logger.Error(e, "Couldn't refresh info for {0}", series);
240 UpdateTags(series);
…lines 241–288 unchanged (48 lines)

Before

compilation_unit
using_directive
using "using"
identifier "System"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Collections"
. "."
identifier "Generic"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "IO"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Linq"
; ";"
using_directive
using "using"
identifier "NLog"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Extensions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Instrumentation"
. "."
identifier "Extensions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Configuration"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Exceptions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
. "."
identifier "Events"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Commands"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Events"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MetadataSource"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
. "."
identifier "Commands"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
. "."
identifier "Events"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
declaration_list
{ "{"
class_declaration
modifier
public "public"
class "class"
identifier "RefreshSeriesService"
base_list
: ":"
generic_name
identifier "IExecute"
type_argument_list
< "<"
identifier "RefreshSeriesCommand"
> ">"
declaration_list
{ "{"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IProvideSeriesInfo"
variable_declarator
identifier "_seriesInfo"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ISeriesService"
variable_declarator
identifier "_seriesService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IRefreshEpisodeService"
variable_declarator
identifier "_refreshEpisodeService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IEventAggregator"
variable_declarator
identifier "_eventAggregator"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IDiskScanService"
variable_declarator
identifier "_diskScanService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ICheckIfSeriesShouldBeRefreshed"
variable_declarator
identifier "_checkIfSeriesShouldBeRefreshed"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IConfigService"
variable_declarator
identifier "_configService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ICommandResultReporter"
variable_declarator
identifier "_commandResultReporter"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "Logger"
variable_declarator
identifier "_logger"
; ";"
constructor_declaration (+99 nodes collapsed)
method_declaration (+770 nodes collapsed)
method_declaration (+264 nodes collapsed)
method_declaration (+239 nodes collapsed)
method_declaration (+52 nodes collapsed)
method_declaration
modifier
public "public"
predefined_type "void"
identifier "Execute"
parameter_list
( "("
parameter
identifier "RefreshSeriesCommand"
identifier "message"
) ")"
block
{ "{"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "trigger"
= "="
member_access_expression
identifier "message"
. "."
identifier "Trigger"
; ";"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "isNew"
= "="
member_access_expression
identifier "message"
. "."
identifier "IsNewSeries"
; ";"
expression_statement (+25 nodes collapsed)
if_statement
if "if"
( "("
invocation_expression
member_access_expression
member_access_expression
identifier "message"
. "."
identifier "SeriesIds"
. "."
identifier "Any"
argument_list
( "("
) ")"
) ")"
block
{ "{"
foreach_statement
foreach "foreach"
( "("
implicit_type
var "var"
identifier "seriesId"
in "in"
member_access_expression
identifier "message"
. "."
identifier "SeriesIds"
) ")"
block
{ "{"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "series"
= "="
invocation_expression
member_access_expression
identifier "_seriesService"
. "."
identifier "GetSeries"
argument_list
( "("
argument
identifier "seriesId"
) ")"
; ";"
try_statement
try "try"
block (+39 nodes collapsed)
catch_clause
catch "catch"
catch_declaration
( "("
identifier "SeriesNotFoundException"
) ")"
block
{ "{"
expression_statement (+27 nodes collapsed)
comment "// Mark the result as indeterminate so it's not marked as a "...
comment "// // but we can still process other series if needed."
expression_statement
invocation_expression
member_access_expression
identifier "_commandResultReporter"
. "."
identifier "Report"
argument_list
( "("
argument
member_access_expression
identifier "CommandResult"
. "."
identifier "Indeterminate"
) ")"
; ";"
} "}"
catch_clause (+72 nodes collapsed)
} "}"
} "}"
else "else"
block (+253 nodes collapsed)
expression_statement
invocation_expression
member_access_expression
identifier "_eventAggregator"
. "."
identifier "PublishEvent"
argument_list
( "("
argument
object_creation_expression
new "new"
identifier "SeriesRefreshCompleteEvent"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
} "}"
} "}"

After

compilation_unit
using_directive
using "using"
identifier "System"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Collections"
. "."
identifier "Generic"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "IO"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Linq"
; ";"
using_directive
using "using"
identifier "NLog"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Extensions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Common"
. "."
identifier "Instrumentation"
. "."
identifier "Extensions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Configuration"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Exceptions"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
. "."
identifier "Events"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Commands"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Messaging"
. "."
identifier "Events"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MetadataSource"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
. "."
identifier "Commands"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
. "."
identifier "Events"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
declaration_list
{ "{"
class_declaration
modifier
public "public"
class "class"
identifier "RefreshSeriesService"
base_list
: ":"
generic_name
identifier "IExecute"
type_argument_list
< "<"
identifier "RefreshSeriesCommand"
> ">"
declaration_list
{ "{"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IProvideSeriesInfo"
variable_declarator
identifier "_seriesInfo"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ISeriesService"
variable_declarator
identifier "_seriesService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IRefreshEpisodeService"
variable_declarator
identifier "_refreshEpisodeService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IEventAggregator"
variable_declarator
identifier "_eventAggregator"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IDiskScanService"
variable_declarator
identifier "_diskScanService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ICheckIfSeriesShouldBeRefreshed"
variable_declarator
identifier "_checkIfSeriesShouldBeRefreshed"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "IConfigService"
variable_declarator
identifier "_configService"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "ICommandResultReporter"
variable_declarator
identifier "_commandResultReporter"
; ";"
field_declaration
modifier
private "private"
modifier
readonly "readonly"
variable_declaration
identifier "Logger"
variable_declarator
identifier "_logger"
; ";"
constructor_declaration (+99 nodes collapsed)
method_declaration (+770 nodes collapsed)
method_declaration (+264 nodes collapsed)
method_declaration (+239 nodes collapsed)
method_declaration (+52 nodes collapsed)
method_declaration
modifier
public "public"
predefined_type "void"
identifier "Execute"
parameter_list
( "("
parameter
identifier "RefreshSeriesCommand"
identifier "message"
) ")"
block
{ "{"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "trigger"
= "="
member_access_expression
identifier "message"
. "."
identifier "Trigger"
; ";"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "isNew"
= "="
member_access_expression
identifier "message"
. "."
identifier "IsNewSeries"
; ";"
expression_statement (+25 nodes collapsed)
if_statement
if "if"
( "("
invocation_expression
member_access_expression
member_access_expression
identifier "message"
. "."
identifier "SeriesIds"
. "."
identifier "Any"
argument_list
( "("
) ")"
) ")"
block
{ "{"
foreach_statement
foreach "foreach"
( "("
implicit_type
var "var"
identifier "seriesId"
in "in"
member_access_expression
identifier "message"
. "."
identifier "SeriesIds"
) ")"
block
{ "{"
local_declaration_statement
variable_declaration
implicit_type
var "var"
variable_declarator
identifier "series"
= "="
invocation_expression
member_access_expression
identifier "_seriesService"
. "."
identifier "GetSeries"
argument_list
( "("
argument
identifier "seriesId"
) ")"
; ";"
try_statement
try "try"
block (+39 nodes collapsed)
catch_clause
catch "catch"
catch_declaration
( "("
identifier "SeriesNotFoundException"
) ")"
block
{ "{"
expression_statement (+27 nodes collapsed)
comment "// Mark the result as indeterminate so it's not marked as a "...
comment "// but we can still process other series if needed."
expression_statement
invocation_expression
member_access_expression
identifier "_commandResultReporter"
. "."
identifier "Report"
argument_list
( "("
argument
member_access_expression
identifier "CommandResult"
. "."
identifier "Indeterminate"
) ")"
; ";"
} "}"
catch_clause (+72 nodes collapsed)
} "}"
} "}"
else "else"
block (+253 nodes collapsed)
expression_statement
invocation_expression
member_access_expression
identifier "_eventAggregator"
. "."
identifier "PublishEvent"
argument_list
( "("
argument
object_creation_expression
new "new"
identifier "SeriesRefreshCompleteEvent"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
} "}"
} "}"